Commit 198b1fa1 authored by ssomnath's avatar ssomnath
Browse files

Adding date, time, filename attributes to measurement group

for consistency with older files
parent c0182384
......@@ -229,7 +229,11 @@ def remove_non_exist_spec_dim_labs(h5_spec_inds, h5_spec_vals,
num_fields = 1 + int(all([targ in field_type for targ in ['in', 'out']]))
dc_off_steps = get_attr(h5_meas_grp, 'VS_steps_per_full_cycle')
num_cycles = get_attr(h5_meas_grp, 'VS_number_of_cycles')
num_forc_cycles = get_attr(h5_meas_grp, 'VS_num_of_FORC_cycles')
num_forc_cycles = get_attr(h5_meas_grp, 'VS_num_of_FORC_cycles')
except KeyError:
# This is named differently in some h5 files
num_forc_cycles = get_attr(h5_meas_grp, 'VS_num_of_Forc_cycles')
size_dict = {'Frequency': num_freq_bins,
'DC_Offset': dc_off_steps,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment