Commit a632b7d0 authored by ssomnath's avatar ssomnath
Browse files

Catching yet another parameter not written correctly

parent 4f359bef
......@@ -182,6 +182,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:
new_val = 1
warn('Updating parameter "VS_offset_[V]" from invalid value'
' of {} to {}'.format(parm_dict['VS_offset_[V]'],
new_val))
parm_dict['VS_offset_[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