Results¶
- class rocky_worlds_data_challenge.Results(photometry_GJ_3929_b: Photometry, posterior_GJ_3929_b: Posterior, form_GJ_3929_b: Form, photometry_LHS_1140_b: Photometry, posterior_LHS_1140_b: Posterior, form_LHS_1140_b: Form)[source]¶
Bases:
objectComplete challenge submission for both target planets.
- Variables:
photometry_GJ_3929_b (Photometry) – Reduced photometry products for GJ 3929 b.
posterior_GJ_3929_b (Posterior) – Posterior samples for GJ 3929 b.
form_GJ_3929_b (Form) – Completed questionnaire responses for GJ 3929 b.
photometry_LHS_1140_b (Photometry) – Reduced photometry products for LHS 1140 b.
posterior_LHS_1140_b (Posterior) – Posterior samples for LHS 1140 b.
form_LHS_1140_b (Form) – Completed questionnaire responses for LHS 1140 b.
Store all components needed for one complete submission.
- Parameters:
photometry_GJ_3929_b (Photometry) – Reduced photometry products for GJ 3929 b.
posterior_GJ_3929_b (Posterior) – Posterior samples for GJ 3929 b.
form_GJ_3929_b (Form) – Completed questionnaire responses for GJ 3929 b.
photometry_LHS_1140_b (Photometry) – Reduced photometry products for LHS 1140 b.
posterior_LHS_1140_b (Posterior) – Posterior samples for LHS 1140 b.
form_LHS_1140_b (Form) – Completed questionnaire responses for LHS 1140 b.
Attributes Summary
Completed questionnaire responses for GJ 3929 b.
Completed questionnaire responses for LHS 1140 b.
Reduced photometry products for GJ 3929 b.
Reduced photometry products for LHS 1140 b.
Posterior samples for GJ 3929 b.
Posterior samples for LHS 1140 b.
Methods Summary
load([filepath, validate])Load a complete submission ZIP archive.
to_submission([filepath, overwrite])Write a Kaggle submission ZIP archive.
validate([verbose])Validate all photometry, posterior, and form objects.
Attributes Documentation
- photometry_GJ_3929_b: Photometry¶
Reduced photometry products for GJ 3929 b.
- photometry_LHS_1140_b: Photometry¶
Reduced photometry products for LHS 1140 b.
Methods Documentation
- classmethod load(filepath='submission.zip', validate=True)[source]¶
Load a complete submission ZIP archive.
- Parameters:
filepath (path-like, optional) – Path to the submission ZIP archive.
validate (bool, optional) – Validate the loaded submission before returning it.
- Returns:
Complete submission reconstructed from the archive.
- Return type:
- Raises:
ValueError – If
validateisTrueand any loaded component is invalid.
- to_submission(filepath='submission.zip', overwrite=False)[source]¶
Write a Kaggle submission ZIP archive.
The archive contains exactly:
posterior_LHS1140b.txt posterior_GJ3929b.txt lc_GJ3929b.h5 lc_LHS1140b.h5 form_GJ3929b.json form_LHS1140b.json
The posterior .txt files contain CSV-formatted text.
- Parameters:
filepath (path-like, optional) – Destination path for the submission ZIP archive.
overwrite (bool, optional) – Allow an existing file at
filepathto be replaced.
- Returns:
Absolute path to the written ZIP archive.
- Return type:
str
- Raises:
FileExistsError – If
filepathalready exists andoverwriteisFalse.ValueError – If any contained photometry, posterior, or form object fails validation.