Commit 1119acaf authored by ssomnath's avatar ssomnath
Browse files

Corrected parameter name from offset to amplitude

parent 8081b0e3
......@@ -183,13 +183,13 @@ class BEodfTranslator(Translator):
' of {} to {}'.format(parm_dict['BE_amplitude_[V]'],
new_val))
parm_dict['BE_amplitude_[V]'] = new_val
if 'VS_offset_[V]' in parm_dict.keys():
if parm_dict['VS_offset_[V]'] < 1E-2:
if 'VS_amplitude_[V]' in parm_dict.keys():
if parm_dict['VS_amplitude_[V]'] < 1E-2:
new_val = 1
warn('Updating parameter "VS_offset_[V]" from invalid value'
' of {} to {}'.format(parm_dict['VS_offset_[V]'],
warn('Updating parameter "VS_amplitude_[V]" from invalid value'
' of {} to {}'.format(parm_dict['VS_amplitude_[V]'],
new_val))
parm_dict['VS_offset_[V]'] = new_val
parm_dict['VS_amplitude_[V]'] = new_val
if self._verbose:
keys = list(parm_dict.keys())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment