Closed dstndstn closed 10 years ago
This allows writing and then reading back a table with a boolean column.
This is really great Dustin. This has been in the todo list for a long time. Do you have a fork I can pull from?
It only covers one code branch though -- and may break the other code branch! The main issue seems to be around logical columns being written as 'T' / 'F' -- or is it just cfitsio returning that? -- and I worked around that by, in the python code, creating a numpy boolean array, passing that to cfitsio as usual, and then post-processing it in python. The main issue is that if you use the boolean array and don't post-process it, then it contains 'T' or 'F', BOTH of which evaluate to TRUE. So it appears to work but returns the wrong answer -- BAD NEWS! I'm afraid I'm in a rush right now so I don't have time to unit test and make sure the other code branches work. Can I ask you to ping me on this in a week if you don't hear anything by then?
closing since this was a dup
Hi,
I just ran across the issue that logical (boolean) columns in bintables don't seem to be supported. The following diff starts to address that -- it's good enough for my purposes, but doesn't cover all code paths.