[Numpy-discussion] Numerics 21 -> Numerics 22/23

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Wed Mar 12 09:10:13 CST 2003


Hi all
	I have been using some scripts with Numeric 21 that worked great but 
after an upgrade to (22 or 23), I can't find the equivalent. Could 
someone point me out some documentation, please.

Here is a script that used to work with Numeric-21:

#----

from Scientific.IO.NetCDF import *

file = NetCDFFile('test.nc', 'w')
var = file.createVariable('zspace','l',())
var.dummy = 'foo'    #everything is fine !

var.bug = 8
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ValueError: Invalid type for array

var.bug = 18.0
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ValueError: Invalid type for array

var.bug = '213.7'	#everything is fine !

#----

Numerics don't want real type anymore ?


Thanks for any help

mathieu

-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/





More information about the Numpy-discussion mailing list