[Numpy-discussion] memmap problem
Neal Becker
ndbecker2@gmail....
Sat Jan 10 12:41:59 CST 2009
Robert Kern wrote:
> On Fri, Jan 9, 2009 at 10:59, Neal Becker <ndbecker2@gmail.com> wrote:
>> I modified memmap.py to avoid the issues with needed to read. It is
>> working, but I am seeing these:
>>
>> m
>> Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound
>> method eos_memmap.__del__ of eos_memmap([255, 255, 255], dtype=uint8)>
>> ignored Exception exceptions.EnvironmentError: (22, 'Invalid argument')
>> in <bound method eos_memmap.__del__ of eos_memmap([0, 0, 0],
>> dtype=uint8)> ignored
>> Out[22]: eos_memmap([ 0, 0, 0, ..., 255, 255, 255], dtype=uint8)
>>
>> print m[0:4]
>> Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound
>> method eos_memmap.__del__ of eos_memmap([0, 0, 0, 0], dtype=uint8)>
>> ignored
>> [0 0 0 0]
>>
>> What's that about?
>
> Can you show us your modifications? You may need to also modify
> __array_finalize__(), _close(), and __del__().
>
Problem was with __del__ calling flush. For whatever reason, flush is bad on my device. I simply removed the call.
More information about the Numpy-discussion
mailing list