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

Review of DM-3387 ("Make use of good pixel count when building CoaddPsfs") #13

Merged
merged 3 commits into from Sep 10, 2015

Conversation

jdswinbank
Copy link
Contributor

No description provided.

try {
afw::table::Key<int> goodPixKey = catalog.getSchema()["goodpix"]; // auto does not work
mapper.addMapping(goodPixKey, true);
} catch (pex::exceptions::NotFoundError &) {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A pretty trivial point, but: you've used "if available" twice one one line above, plus a further twice in the commit message, plus one instance of "if it was available". None of them are actually wrong, but all that repetition makes things pretty hard to read! Could you spend a few seconds rephrasing for clarity?

Copy link
Contributor

Choose a reason for hiding this comment

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

OK

Modify the CoaddPsf constructor to use the "goodpix" field
of "catalog", if present, when computing _averagePosition.
The only required change was to copy the "goodpix" field,
if available, when copying the catalog. The existing
computeAveragePosition method already used the information
if it could find it, and silently ignored it otherwise.
Cleaned up tests/CoaddPsf.py to make it pass the pyflakes
linter, as follows:
- Removed unused imports
- Stopped assigning to variables that are not used
- Removed display code that was disabled and broken
  (it used undefined variables xwid, ywid and ds9)
Test that the CoaddPsf constructor uses the information
in the catalog's "goodpix" field.
@r-owen r-owen merged commit f4d8373 into master Sep 10, 2015
@ktlim ktlim deleted the tickets/DM-3387 branch August 25, 2018 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants