Compare commits

...

2 Commits

Author SHA1 Message Date
Thijs Hekman e5c40c6af3 Merged in lasp from remote
Building, testing and releasing LASP if it has a tag / Build-Test-Ubuntu (push) Successful in 3m8s Details
Building, testing and releasing LASP if it has a tag / Release-Ubuntu (push) Has been skipped Details
2023-12-19 11:24:04 +01:00
Thijs Hekman 8c7dbed606 Bugfix in qty input of Measurement.fromnpy() 2023-12-19 11:21:13 +01:00
1 changed files with 1 additions and 2 deletions

View File

@ -850,7 +850,6 @@ class Measurement:
if len(qtys) != nchannels:
raise RuntimeError("Illegal length of qtys list given")
qtyvals = [qty.value for qty in qtys]
with h5.File(mfn, "w") as hf:
hf.attrs["samplerate"] = samplerate
@ -860,7 +859,7 @@ class Measurement:
hf.attrs["nchannels"] = nchannels
# 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
if channelNames is not None: