osPlanning / omx

Open Matrix (OMX)
https://github.com/osPlanning/omx/wiki
Apache License 2.0
49 stars 18 forks source link

creates index in new h5 file even when it wasn't successfully created #7

Closed e-lo closed 3 years ago

e-lo commented 11 years ago

Issue:

Traceback:

>>> outFile["test1"]=m1in
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "omx\File.py", line 178, in __setitem__
    return self.createMatrix(key, atom, shape, obj=dataset)
  File "omx\File.py", line 33, in createMatrix
    chunkshape, byteorder, createparents)
  File "C:\Python27\Lib\site-packages\tables\file.py", line 831, in createCArray

    chunkshape=chunkshape, byteorder=byteorder)
  File "C:\Python27\Lib\site-packages\tables\carray.py", line 203, in __init__
    byteorder, _log)
  File "C:\Python27\Lib\site-packages\tables\leaf.py", line 263, in __init__
    super(Leaf, self).__init__(parentNode, name, _log)
  File "C:\Python27\Lib\site-packages\tables\node.py", line 241, in __init__
    parentNode._g_refNode(self, name, validate)
  File "C:\Python27\Lib\site-packages\tables\group.py", line 494, in _g_refNode
    % (self._v_pathname, childName))
tables.exceptions.NodeError: group ``/`` already has a child node named ``test1`
bstabler commented 3 years ago

I'm closing this since we should move this issue to https://github.com/osPlanning/omx-python