On Jan 24, 2009, at 6:23 PM, Ryan May wrote:
Ok, thanks. I've dug a little further, and it seems like the
problem is that a
column of all missing values ends up as a column of all None's.
When you create
a (masked) array from a list of None's, you end up with an object
array. On
Pierre GM wrote:
On Jan 24, 2009, at 6:23 PM, Ryan May wrote:
Ok, thanks. I've dug a little further, and it seems like the
problem is that a
column of all missing values ends up as a column of all None's.
When you create
a (masked) array from a list of None's, you end up with an object
Pierre,
I've found what I consider to be a bug in the new mafromtxt (though apparently
it
existed in earlier versions as well). If you have an entire column of data in a
file that contains only masked data, and try to get mafromtxt to automatically
choose the dtype, the dtype gets selected to
Ryan,
Thanks for reporting. An idea would be to force the dtype of the
masked column to the largest dtype of the other columns (in your
example, that would be int). I'll try to see how easily it can be done
early next week. Meanwhile, you can always give an explicit dtype at
creation.
On
Pierre GM wrote:
Ryan,
Thanks for reporting. An idea would be to force the dtype of the
masked column to the largest dtype of the other columns (in your
example, that would be int). I'll try to see how easily it can be done
early next week. Meanwhile, you can always give an explicit