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

Issue with masked arrays and boolean columns #10

Open
astrofrog opened this issue Jan 18, 2011 · 0 comments
Open

Issue with masked arrays and boolean columns #10

astrofrog opened this issue Jan 18, 2011 · 0 comments
Milestone

Comments

@astrofrog
Copy link
Member

A masked Numpy array with boolean values has by default a fill value of True which causes issues when writing out to e.g. FITS files because the TNULL keyword is set to True, and the next time the table is read in, all True values are masked.

In [3]:ma.array([True,False,True],fill_value=None,mask=None)
Out[3]: 
masked_array(data = [True False True],
             mask = [False False False],
       fill_value = True)
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

No branches or pull requests

1 participant