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
8abcd3df
Unverified
Commit
8abcd3df
authored
Jul 10, 2020
by
Suhas Somnath
Committed by
GitHub
Jul 10, 2020
Browse files
Merge pull request #231 from pycroscopy/odf_debug
Not writing region references anymore for BE
parents
cde68c8b
1f012bab
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/io/translators/labview_h5_patcher.py
View file @
8abcd3df
...
...
@@ -205,13 +205,6 @@ class LabViewH5Patcher(Translator):
if
len
(
missing_metadata
)
>
0
:
write_simple_attrs
(
h5_meas
,
missing_metadata
)
for
ilabel
,
label
in
enumerate
(
h5_spec_labels
):
label_slice
=
(
slice
(
ilabel
,
ilabel
+
1
),
slice
(
None
))
if
label
==
''
:
label
=
'Step'
h5_spec_inds
.
attrs
[
label
]
=
h5_spec_inds
.
regionref
[
label_slice
]
h5_spec_vals
.
attrs
[
label
]
=
h5_spec_vals
.
regionref
[
label_slice
]
# Link the references to the Indices and Values datasets to the Raw_Data
link_as_main
(
h5_raw
,
h5_pos_inds
,
h5_pos_vals
,
h5_spec_inds
,
h5_spec_vals
)
...
...
@@ -256,14 +249,6 @@ class LabViewH5Patcher(Translator):
except
:
raise
# Make region references in the
for
ilabel
,
label
in
enumerate
(
h5_sho_spec_labels
):
label_slice
=
(
slice
(
ilabel
,
ilabel
+
1
),
slice
(
None
))
if
label
==
''
:
label
=
'Step'
.
encode
(
'utf-8'
)
h5_sho_spec_inds
.
attrs
[
label
]
=
h5_sho_spec_inds
.
regionref
[
label_slice
]
h5_sho_spec_vals
.
attrs
[
label
]
=
h5_sho_spec_vals
.
regionref
[
label_slice
]
h5_file
.
flush
()
h5_file
.
attrs
[
'translator'
]
=
'V3patcher'
.
encode
(
'utf-8'
)
...
...
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