description is plotted better now

This commit is contained in:
2026-07-04 20:50:57 +02:00
parent 1c4f8f5344
commit 58e7846bbe
3 changed files with 47 additions and 16 deletions
+2
View File
@@ -536,6 +536,8 @@ def read_from_hdf(hdf_node):
# job id and x,y titles are missing
adc=ADC_Result()
if hdf_node._v_title:
adc.set_title(hdf_node._v_title)
# populate description dictionary
adc.description={}
for attrname in hdf_node._v_attrs._v_attrnamesuser:
+2
View File
@@ -1167,6 +1167,8 @@ def read_from_hdf(hdf_node):
accu.index.append((r["start"],r["start"]+r["length"]-1))
accu.n=r["number"]
accu.sampling_rate=1.0/r["dwelltime"]
accu.set_title("Accumulation: n = %d" % accu.n)
# now really belief there are no data
if len(accu.index)==0 or accu.n==0: