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

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

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 
    cval = cval, output_type = output_type)
  File "/jws30/haase/PrLin0/numarray/nd_image/filters.py", line 261, in 
    cval, origin, _ni_support._type_to_num[output_type])
TypeError: NA_IoArray: I/O numarray must be writable NumArrays.
>>> na.__version__

Sebastian Haase

More information about the NumPy-Discussion mailing list