Skip to content

Commit

Permalink
schemas: provide a default value for ETCS brake parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Jean SIMARD <[email protected]>
  • Loading branch information
woshilapin committed Jan 14, 2025
1 parent ddc52f5 commit cf771fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/osrd_schemas/osrd_schemas/rolling_stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ class RollingStock(BaseModel, extra="forbid"):
description="The constant gamma braking coefficient used when NOT circulating under "
"ETCS/ERTMS signaling system in m/s^2"
)
etcs_brake_params: Optional[EtcsBrakeParams] = Field(description="Braking parameters for ERTMS ETCS Level 2")
etcs_brake_params: Optional[EtcsBrakeParams] = Field(
description="Braking parameters for ERTMS ETCS Level 2", default=None
)
inertia_coefficient: NonNegativeFloat = Field(description="The coefficient of inertia")
mass: NonNegativeFloat = Field(description="The mass of the train, in kg")
rolling_resistance: RollingResistance = Field(description="The formula to use to compute rolling resistance")
Expand Down

0 comments on commit cf771fa

Please sign in to comment.