thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

genfromtxt masks non missing data (Trac #2158) #5950

Open numpy-gitbot opened 12 years ago

numpy-gitbot commented 12 years ago

Original ticket http://projects.scipy.org/numpy/ticket/2158 on 2012-06-13 by trac user hoesterlin, assigned to unknown.

Under some conditions genfromtxt seems to mask not only missing data, but also data that happens to have the value as the filling_values (or its default if no filling_values is given). While setting the filling_values to an "unlikely" value circumvents this i still find it troubling. Oddly, it only appears if I read more than one column. In the attached example code the -1 (which is the default filling value for integers) is masked unnecessarily.

numpy-gitbot commented 12 years ago

Attachment added by trac user hoesterlin on 2012-06-13: genfromtxtBug.py