mirror of https://gitlab.com/pamhyr/pamhyr2
IC: Fix incline computation in case of zero marging.
parent
ab1b7a2605
commit
df1ac5586e
|
|
@ -743,7 +743,10 @@ class Reach(SQLSubModel):
|
|||
incline_acc.sort()
|
||||
|
||||
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_set}")
|
||||
|
|
|
|||
|
|
@ -430,7 +430,7 @@ class InitialConditions(SQLSubModel):
|
|||
logger.debug(f"({profile.kp}):")
|
||||
logger.debug(f" width = {width}")
|
||||
logger.debug(f" strickler = {strickler}")
|
||||
logger.debug(f" hieght = {height}")
|
||||
logger.debug(f" height = {height}")
|
||||
|
||||
new = Data(reach=self._reach, status=self._status)
|
||||
new["kp"] = profile.kp
|
||||
|
|
|
|||
Loading…
Reference in New Issue