Sampling rate is saved in HDF files as attributes, i.e. h.root.data_pool.dict_result._v_attrs["sampling_rate"]

Fixes T95
This commit is contained in:
Markus Rosenstihl 2018-03-27 17:16:34 +02:00
parent 30fc39eb04
commit 7511f6df94
2 changed files with 2 additions and 1 deletions

View File

@ -232,6 +232,7 @@ class ADC_Result(Resultable, Drawable, DamarisFFT, Signalpath):
if self.description is not None:
for (key,value) in self.description.iteritems():
accu_group._v_attrs.__setattr__("description_"+key,str(value))
accu_group._v_attrs.__setattr__("sampling_rate",self.sampling_rate)
# save interval information
filter=None

View File

@ -428,7 +428,7 @@ class Accumulation(Errorable, Drawable, DamarisFFT, Signalpath):
if self.common_descriptions is not None:
for (key,value) in self.common_descriptions.iteritems():
accu_group._v_attrs.__setattr__("description_"+key,str(value))
accu_group._v_attrs.__setattr__("sampling_rate",self.sampling_rate)
# save interval information
filter=None
if complib is not None: