Commit df1ac558 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

IC: Fix incline computation in case of zero marging.

No related merge requests found
Pipeline #54999 passed with stages
in 3 minutes and 21 seconds
Showing with 5 additions and 2 deletions
+5 -2
...@@ -743,7 +743,10 @@ class Reach(SQLSubModel): ...@@ -743,7 +743,10 @@ class Reach(SQLSubModel):
incline_acc.sort() incline_acc.sort()
marge = round(len(incline_acc) * 0.1) marge = round(len(incline_acc) * 0.1)
incline_set = incline_acc[marge:-marge] if marge > 0:
incline_set = incline_acc[marge:-marge]
else:
incline_set = incline_acc
logger.debug(f"+{incline_acc}") logger.debug(f"+{incline_acc}")
logger.debug(f"-{incline_set}") logger.debug(f"-{incline_set}")
......
...@@ -430,7 +430,7 @@ class InitialConditions(SQLSubModel): ...@@ -430,7 +430,7 @@ class InitialConditions(SQLSubModel):
logger.debug(f"({profile.kp}):") logger.debug(f"({profile.kp}):")
logger.debug(f" width = {width}") logger.debug(f" width = {width}")
logger.debug(f" strickler = {strickler}") logger.debug(f" strickler = {strickler}")
logger.debug(f" hieght = {height}") logger.debug(f" height = {height}")
new = Data(reach=self._reach, status=self._status) new = Data(reach=self._reach, status=self._status)
new["kp"] = profile.kp new["kp"] = profile.kp
......
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