Commit edab1783 authored by Somnath, Suhas's avatar Somnath, Suhas
Browse files

Ensuring that ODF, and NDF translators write an attribute with the same case - num_udvs_steps

parent 5a65e20a
......@@ -208,7 +208,7 @@ class BEodfTranslator(Translator):
# Some very basic information that can help the processing / analysis crew
parm_dict['num_bins'] = tot_bins
parm_dict['num_pix'] = num_pix
parm_dict['num_UDVS_steps'] = num_actual_udvs_steps
parm_dict['num_udvs_steps'] = num_actual_udvs_steps
udvs_slices = dict()
for col_ind, col_name in enumerate(UDVS_labs):
......@@ -371,13 +371,13 @@ class BEodfTranslator(Translator):
# Now read the raw data files:
if not isBEPS:
# Do this for all BE-Line (always small enough to read in one shot)
self.__quick_read_data(path_dict['read_real'], path_dict['read_imag'], parm_dict['num_UDVS_steps'])
self.__quick_read_data(path_dict['read_real'], path_dict['read_imag'], parm_dict['num_udvs_steps'])
elif real_size < self.max_ram and parm_dict['VS_measure_in_field_loops'] == 'out-of-field':
# Do this for out-of-field BEPS ONLY that is also small (256 MB)
self.__quick_read_data(path_dict['read_real'], path_dict['read_imag'], parm_dict['num_UDVS_steps'])
self.__quick_read_data(path_dict['read_real'], path_dict['read_imag'], parm_dict['num_udvs_steps'])
elif real_size < self.max_ram and parm_dict['VS_measure_in_field_loops'] == 'in-field':
# Do this for in-field only
self.__quick_read_data(path_dict['write_real'], path_dict['write_imag'], parm_dict['num_UDVS_steps'])
self.__quick_read_data(path_dict['write_real'], path_dict['write_imag'], parm_dict['num_udvs_steps'])
else:
# Large BEPS datasets OR those with in-and-out of field
self.__read_beps_data(path_dict, UDVS_mat.shape[0], parm_dict['VS_measure_in_field_loops'], add_pix)
......
......@@ -155,7 +155,7 @@ class BEodfRelaxationTranslator(Translator):
# Some very basic information that can help the processing / analysis crew
parm_dict['num_bins'] = tot_bins
parm_dict['num_pix'] = num_pix
parm_dict['num_UDVS_steps'] = num_actual_udvs_steps
parm_dict['num_udvs_steps'] = num_actual_udvs_steps
udvs_slices = dict();
for col_ind, col_name in enumerate(UDVS_labs):
......
......@@ -282,7 +282,7 @@ def jupyter_visualize_be_spectrograms(h5_main):
h5_pos_inds = getAuxData(h5_main, auxDataName='Position_Indices')[-1]
pos_sort = get_sort_order(np.transpose(h5_pos_inds))
pos_dims = get_dimensionality(np.transpose(h5_pos_inds), pos_sort)
num_udvs_steps = h5_main.parent.parent.attrs['num_UDVS_steps']
num_udvs_steps = h5_main.parent.parent.attrs['num_udvs_steps']
h5_udvs_inds = getAuxData(h5_main, auxDataName='UDVS_Indices')[-1]
h5_freqs = getAuxData(h5_main, auxDataName='Bin_Frequencies')[-1]
wfm_type_vec = getAuxData(h5_main, auxDataName='Bin_Wfm_Type')[-1][()]
......
Supports Markdown
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