Friction: Rename 'Section' to 'Friction'.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-07-17 11:07:19 +02:00
1 parent 1d3cf8bd94
commit 956a0714a2
16 files changed
+362 -348

No files matched your search

+6 -6
View File
@@ -225,17 +225,17 @@ class Mage(AbstractSolver):
id = 1
for edge in edges:
sections = edge.sections
frictions = edge.frictions
for section in sections.sections:
for friction in frictions.frictions:
num = f"{id:>3}"
bkp = f"{section.begin_kp:>10.3f}"
ekp = f"{section.end_kp:>10.3f}"
bkp = f"{friction.begin_kp:>10.3f}"
ekp = f"{friction.end_kp:>10.3f}"
# if section.begin_kp != section.end_kp:
# if friction.begin_kp != friction.end_kp:
# print("TODO")
strickler = section.begin_strickler
strickler = friction.begin_strickler
coef_1 = f"{strickler.minor:>10.3f}"
coef_2 = f"{strickler.medium:>10.3f}"