Commit 8a0e410d authored by Salko Jr, Robert's avatar Salko Jr, Robert
Browse files

Fix bug in Hdf5Tools

Was trying to read the time dataset as an array, but it's a scalar
value.  There was a bug in the HDF5 test file that led to this, which
I fixed.
parent 75214af0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ class Hdf5Interface(object):
        me._transientTimes = []
        if me._isTransient:
           for state in range(me.numState):
              me._transientTimes.append(me.h5['STATE_{:04d}/time'.format(state+1)][0])
              me._transientTimes.append(me.h5['STATE_{:04d}/time'.format(state+1)][()])

        # Takes state number (1-based) and returns a list of dataset names
        me._stateDatasets = {}
+2.61 KiB (130 KiB)

File changed.

No diff preview for this file type.