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
7741e848
Commit
7741e848
authored
Jul 02, 2020
by
ssomnath
Browse files
Added more print statements to __FindSpecValIndices
parent
12c4dfdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/io/translators/df_utils/be_utils.py
View file @
7741e848
...
...
@@ -828,6 +828,7 @@ def createSpecVals(udvs_mat, spec_inds, bin_freqs, bin_wfm_type, parm_dict,
print
(
'
\t
'
*
3
+
'__FindSpecValIndices:'
)
print
(
'
\t
'
*
4
+
'UDVS matrix of shape: {}'
.
format
(
udvs_mat
.
shape
))
print
(
'
\t
'
*
4
+
'spec_inds of shape: {}'
.
format
(
spec_inds
.
shape
))
print
(
udvs_mat
)
# Copy even step values of DC_offset into odd steps
UDVS
=
np
.
copy
(
udvs_mat
)
...
...
@@ -843,8 +844,7 @@ def createSpecVals(udvs_mat, spec_inds, bin_freqs, bin_wfm_type, parm_dict,
"""
icheck
=
np
.
unique
(
spec_inds
[
1
])
if
verbose
:
print
(
'
\t
'
*
4
+
'UDVS matrix of shape: {}'
.
format
(
UDVS
.
shape
))
print
(
'
\t
'
*
4
+
'icheck: {}'
.
format
(
icheck
))
print
(
'
\t
'
*
4
+
'UDVS steps that will be checked: {}'
.
format
(
icheck
))
"""
Keep only the UDVS values for steps which we care about and the
first 5 columns
...
...
@@ -852,8 +852,9 @@ def createSpecVals(udvs_mat, spec_inds, bin_freqs, bin_wfm_type, parm_dict,
UDVS
=
UDVS
[
icheck
,
:
5
]
# UDVS = np.array([UDVS[i] for i in icheck])
if
verbose
:
print
(
'
\t
'
*
4
+
'UDVS matrix after downselecting rows: {}'
print
(
'
\t
'
*
4
+
'UDVS matrix after down
-
selecting rows: {}'
''
.
format
(
UDVS
.
shape
))
print
(
udvs_mat
)
"""
Transpose UDVS for ease of looping later on and store the number of steps
...
...
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