Commit d06614a1 authored by ssomnath's avatar ssomnath
Browse files

Accounting for changes in dimension naming in certain HDF5 files

parent 198b1fa1
......@@ -259,10 +259,14 @@ def remove_non_exist_spec_dim_labs(h5_spec_inds, h5_spec_vals,
axis=0),
is_spec=True, all_dim_names=[dim_name])
std_dim_name = dim_name
if dim_name == 'FORC_cycle':
std_dim_name = 'FORC'
if verbose:
print(dim_name, len(this_dict[dim_name]), size_dict[dim_name])
print(dim_name, len(this_dict[dim_name]), size_dict[std_dim_name])
if len(this_dict[dim_name]) == size_dict[dim_name]:
if len(this_dict[dim_name]) == size_dict[std_dim_name]:
row_ind += 1
matched_dims.append(dim_name)
matched_units.append(dim_units)
......
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