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
DM-7262: Port to Python 3 #50
Conversation
afwImage.ImageF(kimg.getDimensions(), 0.0)) | ||
kimg *= 100.0 | ||
mimg = afwImage.MaskedImageF(kimg.convertFloat(), | ||
afwImage.MaskU(kimg.getDimensions(), 0x0), |
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 intrigued by the 0x0
here. Doesn't seem to be any different to a straight 0
.
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.
Nicely said. I think it was intended to emphasize that this is a mask, whose values are usually set as hex values.
58650b4
to
2ea7495
Compare
Standardize order and grouping of imports Import numpy as np Remove unused imports Use lsst.utils.getPackageDir instead of eups.packageDir
Don't set unused variables Wrap long lines Use is/is not None instead of ==/!= Use "foo not in bar" instead of "not foo in bar"
Fixed undefined variables in an unused functor in growthcurve.py
and the associated comment
Renamed multiple references to ProcessImageForcedTask/Config to ForcedPhotImageTask/Config. The new name is more consistent with the classes that inherit from these, and there were multiple instances in the existing code base that assumed the new name (mostly in comments, but also in code). Note that these classes are only used in meas_base, because the task is an abstract base class, so this change will not affect any other module.
Standarize the way long strings are distributed across multiple lines: - no + to separate - a space separator goes on the end, not the beginning - indent continuation strings appropriately
For str % formatting of a single value, always enclose that value in ( ,) to make it a tuple, for type safety, e.g. `str % (foo,)` not `str % foo`
lsst.utils is used in at least one place and so is an explicit dependency
2ea7495
to
01635fb
Compare
No description provided.