[Numpy-discussion] Why does nd_image require writable input array ?

Sebastian Haase haase at msg.ucsf.edu
Fri Apr 15 12:38:51 CDT 2005


Hi,
I'm using memmap to read my MRC-imagedata files. 
I just thought this might be a case of general interest - see below:

>>> s = U.nd.boxcar_filter(Y.vd(1), size=3, output=None, mode="nearest", 
cval=0.0, origin=0, output_type=None)
Traceback (most recent call last):
  File "<input>", line 1, in ?
  File "/jws30/haase/PrLin0/numarray/nd_image/filters.py", line 314, in 
boxcar_filter
    cval = cval, output_type = output_type)
  File "/jws30/haase/PrLin0/numarray/nd_image/filters.py", line 261, in 
boxcar_filter1d
    cval, origin, _ni_support._type_to_num[output_type])
TypeError: NA_IoArray: I/O numarray must be writable NumArrays.
>>> na.__version__
'1.2.3'
>>> 

 
Thanks,
Sebastian Haase




More information about the Numpy-discussion mailing list