Submitted to sourceforge bugtracker:

copyNodeAttrs() seems to work if the destination is
a node object.  But fails if it is a string.  Here
is an example.  Ran with pytables-1.2.3.

import tables

fp = tables.openFile('test.h5', mode='w')
fp.setNodeAttr('/', 'foo', 'bar')
fp.createGroup('/', 'testg')
fp.copyNodeAttrs('/', '/testg')
fp.close()

Traceback (most recent call last):
  File "test.py", line 7, in ?
    fp.copyNodeAttrs('/', '/testg')
  File "/usr/lib/python2.4/site-packages/tables/File.py", line 1115, in 
copyNodeAttrs
    srcObject._v_attrs._f_copy(dstnode)
  File "/usr/lib/python2.4/site-packages/tables/AttributeSet.py", line 507, in 
_f_copy
    raise TypeError("destination object is not a node: %r" % (where,))
TypeError: destination object is not a node: '/testg'


Mike Romberg


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to