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-13110: export magic value to select default HDU #300

Merged
merged 1 commit into from Jan 5, 2018

Conversation

PaulPrice
Copy link
Contributor

We have used INT_MIN to indicate that the first non-empty HDU should
be selected, but never exported the symbol to python. Changed the name
(but kept the value) so it's clear what it is, and exported it to
python.

Copy link
Member

@RobertLuptonTheGood RobertLuptonTheGood left a comment

Choose a reason for hiding this comment

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

This all looks good.

My apologies that I didn't do the export to python when I wrote the code (I don't think I knew pybind11 at the time, but that's not much of an excuse). Using DEFAULT_HDU not INT_MIN is a definite improvement, especially now that you're exporting the symbolic name.

We have used INT_MIN to indicate that the first non-empty HDU should
be selected, but never exported the symbol to python. Changed the name
(but kept the value) so it's clear what it is, and exported it to
python.
@PaulPrice PaulPrice merged commit d4e4976 into master Jan 5, 2018
@ktlim ktlim deleted the tickets/DM-13110 branch August 25, 2018 06:44
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