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
12c4dfdb
Commit
12c4dfdb
authored
Jul 02, 2020
by
ssomnath
Browse files
Added warning that parameter was renamed
parent
815c63a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/io/translators/be_odf.py
View file @
12c4dfdb
...
...
@@ -44,6 +44,7 @@ class BEodfTranslator(Translator):
self
.
FFT_BE_wave
=
None
self
.
signal_type
=
None
self
.
expt_type
=
None
self
.
_verbose
=
False
@
staticmethod
def
is_valid_file
(
data_path
):
...
...
@@ -155,10 +156,16 @@ class BEodfTranslator(Translator):
isBEPS
,
parm_dict
=
parmsToDict
(
path_dict
[
'parm_txt'
])
# Initial text files named some parameters differently
updated_parms
=
False
if
parm_dict
[
'VS_mode'
]
==
'AC modulation mode'
:
updated_parms
=
True
parm_dict
[
'VS_mode'
]
=
'AC modulation mode with time reversal'
if
parm_dict
[
'BE_phase_content'
]
==
'chirp'
:
updated_parms
=
True
parm_dict
[
'BE_phase_content'
]
=
'chirp-sinc hybrid'
if
updated_parms
:
warn
(
'Parameters were stored in text file with an older format'
'.Values for one or more parameters were updated'
)
elif
'old_mat_parms'
in
path_dict
.
keys
():
if
self
.
_verbose
:
...
...
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