Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
936f2d5708
@ -1111,7 +1111,6 @@ class Measurement:
|
|||||||
if len(qtys) != nchannels:
|
if len(qtys) != nchannels:
|
||||||
raise RuntimeError("Illegal length of qtys list given")
|
raise RuntimeError("Illegal length of qtys list given")
|
||||||
|
|
||||||
qtyvals = [qty.value for qty in qtys]
|
|
||||||
|
|
||||||
with h5.File(mfn, "w") as hf:
|
with h5.File(mfn, "w") as hf:
|
||||||
hf.attrs["samplerate"] = samplerate
|
hf.attrs["samplerate"] = samplerate
|
||||||
@ -1121,7 +1120,7 @@ class Measurement:
|
|||||||
hf.attrs["nchannels"] = nchannels
|
hf.attrs["nchannels"] = nchannels
|
||||||
|
|
||||||
# Add physical quantity indices
|
# Add physical quantity indices
|
||||||
hf.attrs["qtys_enum_idx"] = [qtyval.toInt() for qtyval in qtyvals]
|
hf.attrs['qtys_enum_idx'] = [qty.toInt() for qty in qtys]
|
||||||
|
|
||||||
# Add channel names in case given
|
# Add channel names in case given
|
||||||
if channelNames is not None:
|
if channelNames is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user