Mage, Initial Cond: Fix INI files export.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-06-22 15:22:19 +02:00
1 parent e66b7f665a
commit d9176c6d83
3 files changed
+39 -7

No files matched your search

@@ -217,3 +217,12 @@ class InitialConditions(object):
self._data.append(new)
prev = new
is_reverse = False
if profiles[0].kp > profiles[-1].kp:
is_reverse = True
self._data.sort(
reverse = not is_reverse,
key = lambda d: d['kp']
)