odoare / measpy

Measurements with Python
GNU Lesser General Public License v3.0
4 stars 4 forks source link

Measurement.to_hdf5 doesn't save in_sig data #83

Closed odoare closed 2 months ago

odoare commented 3 months ago

@csavaro : saving in_sig data in Measurement.to_hdf5 seems to fail. Commenting out l278-302 fixes the problem. What is the purpose of these lines ?

csavaro commented 3 months ago

These line are suposed to define the method used to write directly the data from device, with all channels in the same dataset. The condition that there is no data in the Signal is missing. Change l 278 with elif (Nchannel := len(mesu["in_map"])) > 1 and in_sig[0].dur == 0: