We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b2c010 commit bb7e8eeCopy full SHA for bb7e8ee
python/osrd_schemas/osrd_schemas/rolling_stock.py
@@ -42,7 +42,7 @@ class EffortCurve(BaseModel, extra="forbid"):
42
43
@model_validator(mode="after")
44
def check_size(self):
45
- assert len(self.speeds) == len(self.speeds), "speeds and max_efforts must be the same length"
+ assert len(self.speeds) == len(self.max_efforts), "speeds and max_efforts must be the same length"
46
return self
47
48
0 commit comments