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
738f8279
Commit
738f8279
authored
Jul 02, 2020
by
ssomnath
Browse files
BEtter printing of UDVS table
parent
7741e848
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/io/translators/df_utils/be_utils.py
View file @
738f8279
...
...
@@ -828,7 +828,10 @@ 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
)
print
(
'step_num
\t
dc_offset
\t
ac_amp
\t
wave_type
\t
wave_mod
\t
in-field'
'
\t
out-of-field'
)
for
ud_row
in
udvs_mat
:
print
(
'
\t
'
.
join
([
'{:04.2f}'
.
format
(
item
)
for
item
in
ud_row
]))
# Copy even step values of DC_offset into odd steps
UDVS
=
np
.
copy
(
udvs_mat
)
...
...
@@ -854,7 +857,10 @@ def createSpecVals(udvs_mat, spec_inds, bin_freqs, bin_wfm_type, parm_dict,
if
verbose
:
print
(
'
\t
'
*
4
+
'UDVS matrix after down-selecting rows: {}'
''
.
format
(
UDVS
.
shape
))
print
(
udvs_mat
)
print
(
'step_num
\t
dc_offset
\t
ac_amp
\t
wave_type
\t
wave_mod
\t
in-field'
'
\t
out-of-field'
)
for
ud_row
in
udvs_mat
:
print
(
'
\t
'
.
join
([
'{:04.2f}'
.
format
(
item
)
for
item
in
ud_row
]))
"""
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