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
df5fe773
Commit
df5fe773
authored
Jul 02, 2020
by
ssomnath
Browse files
More correct printing of UDVS table
parent
927197fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/io/translators/df_utils/be_utils.py
View file @
df5fe773
...
...
@@ -828,8 +828,9 @@ 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
(
'step_num
\t
dc_offset
\t
ac_ampli
\t
wave_type
\t
wave_mod
\t
in-field'
'
\t
out-of-field'
)
udvs_cols
=
[
'step_num'
,
'dc_offset'
,
'ac_ampli'
,
'wave_type'
,
'wave_mod'
,
'in-field'
,
'out-of-field'
]
print
(
'
\t
'
.
join
(
udvs_cols
))
for
ud_row
in
udvs_mat
:
print
(
'
\t\t
'
.
join
([
'{:04.2f}'
.
format
(
item
)
for
item
in
ud_row
]))
...
...
@@ -857,8 +858,7 @@ 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
(
'step_num
\t
dc_offset
\t
ac_ampli
\t
wave_type
\t
wave_mod
\t
in-field'
'
\t
out-of-field'
)
print
(
'
\t
'
.
join
(
udvs_cols
[:
5
]))
for
ud_row
in
UDVS
:
print
(
'
\t\t
'
.
join
([
'{:04.2f}'
.
format
(
item
)
for
item
in
ud_row
]))
...
...
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