-
Notifications
You must be signed in to change notification settings - Fork 30
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
Cosmetic updates; changes to include snapshot catalogs and lsst magni… #186
Conversation
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.
@evevkovacs thanks. there are some minor issues to address.
descqa/ColorDistribution.py
Outdated
'{} < {}'.format(labels['redshift'], self.zhi)] | ||
else: | ||
filters = None | ||
self.redshift = catalog_instance.redshift |
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.
This may cause unintended effect because the instance of the test class will be reused for all catalogs.
self.redshift = catalog_instance.redshift | |
self.redshift = catalog_instance.redshift |
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.
@yymao Not sure what you were suggesting here, but I realized that I didn't need redshift to be a class variable. It is now local. This will fix the travis issue. Let me know if it doesn't address your concern.
descqa/ColorDistribution.py
Outdated
@@ -33,7 +34,16 @@ | |||
color_transformation['sdss2cfht']['r'] = 'r - 0.024 * (g - r)' | |||
color_transformation['sdss2cfht']['i'] = 'i - 0.085 * (r - i)' | |||
color_transformation['sdss2cfht']['z'] = 'z + 0.074 * (i - z)' | |||
|
|||
color_transformation['lsst2cfht']['u'] = 'u' |
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.
Are Lines 37 to 46 really needed? If no transformation is needed, it should not appear here I think...
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.
Oops yes, that was left in by mistake.
@yymao OK, travis checks passed. |
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.
Thanks, @evevkovacs !
…tudes