Commit 2c97e5ad authored by W. Trevor King's avatar W. Trevor King
Browse files

Preliminary support for dependent formula waves.

parent 41e65472
......@@ -530,14 +530,16 @@ def loadibw(filename, strict=True):
shape = [n for n in wave_info['nDim'] if n > 0] or (0,)
else:
shape = (wave_info['npnts'],)
t = numpy.dtype(numpy.int8) # setup a safe default
if wave_info['type'] == 0: # text wave
shape = (waveDataSize,)
t = numpy.dtype(numpy.int8)
else:
elif wave_info['type'] in TYPE_TABLE or wave_info['npnts']:
t = numpy.dtype(TYPE_TABLE[wave_info['type']])
assert waveDataSize == wave_info['npnts'] * t.itemsize, (
'{}, {}, {}, {}'.format(
waveDataSize, wave_info['npnts'], t.itemsize, t))
else:
pass # formula waves
if wave_info['npnts'] == 0:
data_b = buffer('')
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment