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-8467: Wrap lsst_distrib with pybind11 #30

Merged
merged 1 commit into from Mar 7, 2017
Merged

Conversation

pschella
Copy link

No description provided.

- Fix error calling MaskedImageF copy constructor

The original code may have wanted a deep copy (based on the
third argument being true) but was specifying origin=LOCAL.
Fortunately the code actually wanted origin=LOCAL and had
no obvious need for a deep copy (so the True might also have been
an unfortunate way of spelling "LOCAL").

I tweaked the code so that the default PARENT origin could be
used instead.

- Add full `from __future__ import`

Our pybind11 wrappers require modern division in some places
and all our code should use:
```
from __future__ import absolute_import, division, print_function
```
in any case. I checked for existing cases where `/` relied on
returning an integer and found none.
In at least once instance (image /= float in NullIsrTask)
this change is required in order to run the code with python 2.

- Remove obsolete file

The file I removed contained one class that raised an exception
when any attempt was made to use it and I could find
no code that tried to use it.
@pschella pschella merged commit 7f2bc90 into master Mar 7, 2017
@ktlim ktlim deleted the tickets/DM-8467 branch August 25, 2018 05: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
Development

Successfully merging this pull request may close these issues.

None yet

2 participants