Commit cb7189c4 authored by Jonas Schwab's avatar Jonas Schwab
Browse files

Fixed error when writing float parameter in exponent notation

parent a242c658
......@@ -179,6 +179,8 @@ def _convert_par_to_str(parameter):
written into a parameter file.
if isinstance(parameter, float):
if 'e' in '{}'.format(parameter):
return '{}'.format(parameter).replace('e', 'd')
return '{}d0'.format(parameter)
if isinstance(parameter, int):
return '{}'.format(parameter)
Supports Markdown
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