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

Add ignore_blank keyword to fits.open #2307

Merged
merged 1 commit into from
Apr 14, 2014
Merged

Conversation

ChrisBeaumont
Copy link

This adds the ability to ignore BLANK values, which allows files containing that keyword to be opened in memory mapped mode as discussed in #2295

@@ -627,7 +627,8 @@ def test_fromstring(filename):
c2 = hdul2[idx].data[n]
assert (c1 == c2).all()
else:
Copy link
Author

Choose a reason for hiding this comment

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

New file creates a NAN array, so == isn't sufficient

@astrofrog astrofrog added this to the v0.4.0 milestone Apr 12, 2014
@astrofrog
Copy link
Member

@embray - does this look good to you?

@embray
Copy link
Member

embray commented Apr 14, 2014

I think this looks fine as an interim solution.

embray added a commit that referenced this pull request Apr 14, 2014
Add ignore_blank keyword to fits.open
@embray embray merged commit af8257a into astropy:master Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants