Skip to content
Snippets Groups Projects
Commit 5560f875 authored by tlbl's avatar tlbl
Browse files

update generatedlcs.py

parent 3298d5cf
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -134,11 +134,16 @@ class GeneralDLC(object):
if formula[0] == '"':
if key == '[wsp]' or key == '[gridgustdelay]':
fmt = '%2.2i'
formula = formula.replace(key, fmt%int(dlc[key][i]))
elif key == '[wdir]' or key == '[G_phi0]':
fmt = '%3.3i'
formula = formula.replace(key, fmt%int(dlc[key][i]))
elif key == '[sign]':
fmt = '%s'
formula = formula.replace(key, fmt%dlc[key][i])
else:
fmt = '%4.4i'
formula = formula.replace(key, fmt % int(dlc[key][i]))
formula = formula.replace(key, fmt % int(dlc[key][i]))
elif key in formula:
formula = formula.replace(key, '%s' % dlc[key][i])
formula = formula.replace(',', '.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment