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
a2dabb76
Commit
a2dabb76
authored
Jul 02, 2020
by
ssomnath
Browse files
Checking for empty AC voltage column
parent
d66c36b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/io/translators/be_odf.py
View file @
a2dabb76
...
...
@@ -335,6 +335,9 @@ class BEodfTranslator(Translator):
bins_per_step
=
int
(
bins_per_step
)
num_actual_udvs_steps
=
int
(
num_actual_udvs_steps
)
if
len
(
np
.
unique
(
UDVS_mat
[:,
2
]))
==
0
:
raise
ValueError
(
'No non-zero rows in AC amplitude'
)
stind
=
0
for
step_index
in
range
(
UDVS_mat
.
shape
[
0
]):
if
UDVS_mat
[
step_index
,
2
]
<
1E-3
:
# invalid AC amplitude
...
...
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