pylab.load/save and Not a Number

i was wondering a bit about how to treat missing data when

    > loading or saving data with pylab. numarray has a module
    > for representing NaN, Inf (and i guess numpy have it). but
    > what about reading files with missing data, or NaNs?

The latest matplotlib allows you to pass converter functions into load
so you could write a custom one along the lines of

def float_or_nan(x):
   if x=='None': return nan
   else: return float(x)

You could write something similar for save

    > another note on pylab.load(): wouldn't it be fairly easy to
    > detect the delimiter symbol automatically?

Probably -- let's see it :slight_smile: