Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vasudevan, Rama K
pycroscopy
Commits
c3d5a91f
Commit
c3d5a91f
authored
Jul 07, 2020
by
ssomnath
Browse files
Removing non existent spectroscopic dimension labels and units
parent
4b0e6c42
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/io/translators/labview_h5_patcher.py
View file @
c3d5a91f
...
...
@@ -8,11 +8,15 @@ Created on Tue Nov 3 15:24:12 2015
from
__future__
import
division
,
print_function
,
absolute_import
,
unicode_literals
from
warnings
import
warn
import
sys
import
datetime
import
h5py
import
os
import
numpy
as
np
from
.df_utils.be_utils
import
remove_non_exist_spec_dim_labs
from
pyUSID.io.translator
import
Translator
from
pyUSID.io.hdf_utils
import
get_attr
,
link_as_main
,
check_and_link_ancillary
,
find_results_groups
,
find_dataset
from
pyUSID.io.hdf_utils
import
get_attr
,
link_as_main
,
find_results_groups
,
\
check_and_link_ancillary
,
find_dataset
,
write_simple_attrs
from
pyUSID.io.write_utils
import
create_spec_inds_from_vals
if
sys
.
version_info
.
major
==
3
:
...
...
@@ -163,6 +167,15 @@ class LabViewH5Patcher(Translator):
except
:
raise
""""
In early versions, too many spectroscopic dimension labels and
units were listed compared to the number of rows. Remove here:
"""
remove_non_exist_spec_dim_labs
(
h5_spec_inds
,
h5_spec_vals
,
h5_meas
,
verbose
=
False
)
for
ilabel
,
label
in
enumerate
(
h5_spec_labels
):
label_slice
=
(
slice
(
ilabel
,
ilabel
+
1
),
slice
(
None
))
if
label
==
''
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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