-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix data model #979
Fix data model #979
Conversation
PR #977 is already merged. I have merged master into fix_data_model so that those changes are updated here as well. Let me know when you are ready to merge this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, we just need to update the tests and fix one concern before we are ready to merge
@@ -350,8 +350,11 @@ def hdu_cont(self, results): | |||
self.get_mean_cont(Forest.log_lambda_rest_frame_grid), | |||
self.get_mean_cont_weight(Forest.log_lambda_rest_frame_grid), | |||
], | |||
names=['loglam_rest', 'mean_cont', 'weight'], | |||
names=['LOGLAM_REST', 'MEAN_CONT', 'WEIGHT'], | |||
units=['log(Angstrom)', '10**-17 erg/(s cm2 Angstrom)', ''], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking we should load this from the Data
class or the Forest
class, as different surveys might use different units for the flux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added this. Only for fluxes. At first I did it also for wavelength, but I think it makes no sense to run picca in other units (for example BAL lines are defined in Angstroms, so we would need to write an unit converter)
This standardizes output fits files for image format.
I am waiting for #977 to be merged before adding tests, as both PR need to modify test files.