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

DM-7262: Port to Python 3 #50

Merged
merged 14 commits into from Aug 23, 2016
Merged

DM-7262: Port to Python 3 #50

merged 14 commits into from Aug 23, 2016

Conversation

timj
Copy link
Member

@timj timj commented Aug 23, 2016

No description provided.

afwImage.ImageF(kimg.getDimensions(), 0.0))
kimg *= 100.0
mimg = afwImage.MaskedImageF(kimg.convertFloat(),
afwImage.MaskU(kimg.getDimensions(), 0x0),
Copy link
Member Author

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.

Copy link
Contributor

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.

@r-owen r-owen force-pushed the tickets/DM-7262 branch 4 times, most recently from 58650b4 to 2ea7495 Compare August 23, 2016 21:55
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
@r-owen r-owen merged commit 01635fb into master Aug 23, 2016
@ktlim ktlim deleted the tickets/DM-7262 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