Skip to content
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

Merged
merged 4 commits into from
Sep 23, 2019

Conversation

evevkovacs
Copy link
Contributor

@evevkovacs evevkovacs commented Sep 21, 2019

…tudes

If you are submitting a PR for a validation test (either adding a new one or updating an existing one), please post a link to the DESCQA web interface for the test you are submitting.
This PR replaces the color snapshot PR # 168 . Some examples of tests: old test, with lsst mags, snapshot

Copy link
Member

@yymao yymao left a 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.

'{} < {}'.format(labels['redshift'], self.zhi)]
else:
filters = None
self.redshift = catalog_instance.redshift
Copy link
Member

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.

Suggested change
self.redshift = catalog_instance.redshift
self.redshift = catalog_instance.redshift

Copy link
Contributor Author

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.

@@ -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'
Copy link
Member

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...

Copy link
Contributor Author

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.

@evevkovacs
Copy link
Contributor Author

@yymao OK, travis checks passed.

Copy link
Member

@yymao yymao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @evevkovacs !

@evevkovacs evevkovacs merged commit c7e78f8 into master Sep 23, 2019
@evevkovacs evevkovacs deleted the color_update branch September 23, 2019 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants