From: Mathieu M. <Mat...@cr...> - 2003-03-12 17:09:45
|
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/ |