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
757c5740
Commit
757c5740
authored
Jul 02, 2020
by
ssomnath
Browse files
Turning dummy BE waveform generation into warning instead of print
parent
7a5d0588
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/io/translators/be_odf.py
View file @
757c5740
...
...
@@ -301,8 +301,8 @@ class BEodfTranslator(Translator):
print
(
'
\t
reading BE arrays from old mat text file'
)
bin_inds
,
bin_freqs
,
bin_FFT
,
ex_wfm
,
dc_amp_vec
=
self
.
_read_old_mat_be_vecs
(
path_dict
[
'old_mat_parms'
],
verbose
=
verbose
)
else
:
if
self
.
_verbose
:
print
(
'
\t
Generating dummy BE
arrays'
)
warn
(
'No secondary parameters file provided. Generating dummy BE '
'
arrays'
)
band_width
=
parm_dict
[
'BE_band_width_[Hz]'
]
*
(
0.5
-
parm_dict
[
'BE_band_edge_trim'
])
st_f
=
parm_dict
[
'BE_center_frequency_[Hz]'
]
-
band_width
en_f
=
parm_dict
[
'BE_center_frequency_[Hz]'
]
+
band_width
...
...
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