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-9190: Cleanup pybind11 remaining code #9

Merged
merged 1 commit into from Apr 6, 2017
Merged

Conversation

pschella
Copy link

No description provided.

Copy link
Contributor

@r-owen r-owen left a comment

Choose a reason for hiding this comment

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

Great!

@pschella pschella force-pushed the tickets/DM-9190 branch 2 times, most recently from c27a480 to 2848a55 Compare March 25, 2017 16:06
Copy link
Contributor

@r-owen r-owen left a comment

Choose a reason for hiding this comment

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

Overall fine, but two imports missing.

@@ -68,7 +68,7 @@ def addExposure(self, exposure, weightFactor=1.0):
filter = exposure.getFilter()
self._filterDict.setdefault(filter.getName(), filter)

overlapBBox = chisquaredLib.addToCoadd(self._coadd.getMaskedImage(), self._weightMap,
overlapBBox = addToCoadd(self._coadd.getMaskedImage(), self._weightMap,
exposure.getMaskedImage(), self._badPixelMask, weightFactor)
Copy link
Contributor

Choose a reason for hiding this comment

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

Picky, but please consider running autopep8 or at least fixing this indent.

PYBIND11_PLUGIN(_addToCoadd) {
py::module mod("_addToCoadd", "Python wrapper for _addToCoadd library");
PYBIND11_PLUGIN(addToCoadd) {
py::module mod("addToCoadd");
Copy link
Contributor

Choose a reason for hiding this comment

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

Both afw.geom and afw.image need to be imported.

@pschella pschella merged commit a4f5e85 into master Apr 6, 2017
@ktlim ktlim deleted the tickets/DM-9190 branch August 25, 2018 04:59
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