mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
IC: Fix incline computation in case of zero marging.
This commit is contained in:
1 parent
ab1b7a2605
commit
df1ac5586e
2 files changed
+5
-2
No files matched your search
@@ -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}")
|
||||
|
||||
Reference in new issue
Block a user