Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vasudevan, Rama K
pycroscopy
Commits
cde68c8b
Unverified
Commit
cde68c8b
authored
Jul 09, 2020
by
Suhas Somnath
Committed by
GitHub
Jul 09, 2020
Browse files
Merge pull request #230 from pycroscopy/odf_debug
Patching the LabviewH5Patcher
parents
fb124589
5bd44eb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/io/translators/df_utils/be_utils.py
View file @
cde68c8b
...
...
@@ -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'
)
try
:
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
,
...
...
@@ -255,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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment