@@ -15,7 +15,7 @@ class SerdeAPI(object):
15
15
def from_yaml (cls ) -> Self : ...
16
16
@classmethod
17
17
def from_file (cls ) -> Self : ...
18
- def to_file (self ): ...
18
+ def to_file (self ): ...
19
19
def to_bincode (self ) -> bytes : ...
20
20
def to_json (self ) -> str : ...
21
21
def to_yaml (self ) -> str : ...
@@ -301,7 +301,7 @@ class LocoParams:
301
301
mass_kilograms : Optional [float ]
302
302
303
303
@classmethod
304
- def from_dict (cls , param_dict : Dict [str , float ]) -> Self :
304
+ def from_dict (cls , param_dict : Dict [str , float ]) -> Self :
305
305
"""
306
306
Argument `param_dict` has keys matching attributes of class
307
307
"""
@@ -738,7 +738,7 @@ class LinkPoint(SerdeAPI):
738
738
link_idx : LinkIdx
739
739
740
740
741
- class PathResCoeff (SerdeAPI ):
741
+ class PathResCoeff (SerdeAPI ):
742
742
offset : float
743
743
res_coeff : float
744
744
res_net : float
@@ -790,7 +790,7 @@ class BrakingPoints(SerdeAPI):
790
790
idx_curr : int
791
791
792
792
793
- class FricBrakeState (SerdeAPI ):
793
+ class FricBrakeState (SerdeAPI ):
794
794
i : int
795
795
force_newtons : float
796
796
force_max_curr_newtons : float
@@ -800,7 +800,7 @@ class FricBrakeStateHistoryVec(SerdeAPI):
800
800
i : List [int ]
801
801
force_newtons : List [float ]
802
802
force_max_curr_newtons : List [float ]
803
-
803
+
804
804
805
805
class FricBrake (SerdeAPI ):
806
806
force_max_newtons : float
@@ -983,6 +983,8 @@ class Heading(SerdeAPI):
983
983
@classmethod
984
984
def default (cls ) -> Self : ...
985
985
986
+ class SpeedSet (SerdeAPI ): ...
987
+ # TODO: finish fleshing this out
986
988
987
989
def import_locations (filename : str ) -> Dict [str , List [Location ]]: ...
988
990
def import_rail_vehicles (filename : str ) -> Dict [str , RailVehicle ]: ...
@@ -1097,4 +1099,4 @@ class TrainType(SerdeAPI):
1097
1099
Intermodal = altpy .TrainType .Intermodal ,
1098
1100
HighSpeedPassenger = altpy .TrainType .HighSpeedPassenger ,
1099
1101
TiltTrain = altpy .TrainType .TiltTrain ,
1100
- Commuter = altpy .TrainType .Commuter ,
1102
+ Commuter = altpy .TrainType .Commuter ,
0 commit comments