|
From: Norbert N. <Nor...@gm...> - 2004-10-18 13:19:08
|
Hi there,
maybe I'm just blind trying to read the docs: Is there any way to write to an
existing array within a h5file? I would have expected the following to work,
but it does not:
---------------------------
from tables import *
from scipy import *
h5 = openFile("tryout.h5",'a')
h5.createArray(h5.root,"tryarray",zeros((3,4)))
h5.root.tryarray[2,2] = 17.
---------------------------
but the last line gives "TypeError: object does not support item assignment"
What would be the correct approach?
Ciao,
Nobbi
--
_________________________________________Norbert Nemec
Bernhardstr. 2 ... D-93053 Regensburg
Tel: 0941 / 2009638 ... Mobile: 0179 / 7475199
eMail: <No...@Ne...>
|