Skip to content

Commit

Permalink
Codechange: WIP on refactoring MineralCoveredHopperCar subclass names
Browse files Browse the repository at this point in the history
  • Loading branch information
andythenorth committed Oct 5, 2024
1 parent 9936197 commit d762837
Show file tree
Hide file tree
Showing 8 changed files with 246 additions and 246 deletions.
402 changes: 201 additions & 201 deletions src/train.py

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/vehicles/pony/lime_covered_hopper_cars_randomised_pony.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from train import MineralChemicalCoveredHopperCarLimeRandomisedConsist, FreightCar
from train import MineralCoveredHopperCarLimeRandomisedConsist, FreightCar


def main(roster_id, **kwargs):
# --------------- standard gauge ---------------------------------------------------------------

consist = MineralChemicalCoveredHopperCarLimeRandomisedConsist(
consist = MineralCoveredHopperCarLimeRandomisedConsist(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24750,
Expand All @@ -15,7 +15,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="empty_16px")

consist = MineralChemicalCoveredHopperCarLimeRandomisedConsist(
consist = MineralCoveredHopperCarLimeRandomisedConsist(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26610,
Expand All @@ -26,7 +26,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="empty_24px")

consist = MineralChemicalCoveredHopperCarLimeRandomisedConsist(
consist = MineralCoveredHopperCarLimeRandomisedConsist(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26620,
Expand All @@ -37,7 +37,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="empty_24px")

consist = MineralChemicalCoveredHopperCarLimeRandomisedConsist(
consist = MineralCoveredHopperCarLimeRandomisedConsist(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26630,
Expand All @@ -48,7 +48,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="empty_16px")

consist = MineralChemicalCoveredHopperCarLimeRandomisedConsist(
consist = MineralCoveredHopperCarLimeRandomisedConsist(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26640,
Expand Down
16 changes: 8 additions & 8 deletions src/vehicles/pony/lime_covered_hopper_cars_type_1_pony.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from train import MineralChemicalCoveredHopperCarLimeConsistType1, FreightCar
from train import MineralCoveredHopperCarLimeConsistType1, FreightCar


def main(roster_id, **kwargs):
# --------------- standard gauge ---------------------------------------------------------------

consist = MineralChemicalCoveredHopperCarLimeConsistType1(
consist = MineralCoveredHopperCarLimeConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=25990,
Expand All @@ -15,7 +15,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")

consist = MineralChemicalCoveredHopperCarLimeConsistType1(
consist = MineralCoveredHopperCarLimeConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26000,
Expand All @@ -26,7 +26,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")

consist = MineralChemicalCoveredHopperCarLimeConsistType1(
consist = MineralCoveredHopperCarLimeConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26010,
Expand All @@ -37,7 +37,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")

consist = MineralChemicalCoveredHopperCarLimeConsistType1(
consist = MineralCoveredHopperCarLimeConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26020,
Expand All @@ -48,7 +48,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_24px")

consist = MineralChemicalCoveredHopperCarLimeConsistType1(
consist = MineralCoveredHopperCarLimeConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26070,
Expand All @@ -59,7 +59,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_greebled_16px")

consist = MineralChemicalCoveredHopperCarLimeConsistType1(
consist = MineralCoveredHopperCarLimeConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26030,
Expand All @@ -70,7 +70,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_greebled_24px")

consist = MineralChemicalCoveredHopperCarLimeConsistType1(
consist = MineralCoveredHopperCarLimeConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26040,
Expand Down
16 changes: 8 additions & 8 deletions src/vehicles/pony/lime_covered_hopper_cars_type_2_pony.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from train import MineralChemicalCoveredHopperCarLimeConsistType2, FreightCar
from train import MineralCoveredHopperCarLimeConsistType2, FreightCar


def main(roster_id, **kwargs):
# --------------- standard gauge ---------------------------------------------------------------
"""
consist = MineralChemicalCoveredHopperCarLimeConsistType2(
consist = MineralCoveredHopperCarLimeConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=25990,
Expand All @@ -15,7 +15,7 @@ def main(roster_id, **kwargs):
consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")
consist = MineralChemicalCoveredHopperCarLimeConsistType2(
consist = MineralCoveredHopperCarLimeConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26000,
Expand All @@ -26,7 +26,7 @@ def main(roster_id, **kwargs):
consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")
"""
consist = MineralChemicalCoveredHopperCarLimeConsistType2(
consist = MineralCoveredHopperCarLimeConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24900,
Expand All @@ -37,7 +37,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")

consist = MineralChemicalCoveredHopperCarLimeConsistType2(
consist = MineralCoveredHopperCarLimeConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24910,
Expand All @@ -48,7 +48,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_24px")

consist = MineralChemicalCoveredHopperCarLimeConsistType2(
consist = MineralCoveredHopperCarLimeConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24920,
Expand All @@ -59,7 +59,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_greebled_16px")

consist = MineralChemicalCoveredHopperCarLimeConsistType2(
consist = MineralCoveredHopperCarLimeConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24930,
Expand All @@ -70,7 +70,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_filled_greebled_24px")

consist = MineralChemicalCoveredHopperCarLimeConsistType2(
consist = MineralCoveredHopperCarLimeConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=22250,
Expand Down
16 changes: 8 additions & 8 deletions src/vehicles/pony/lime_covered_hopper_cars_type_3_pony.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from train import MineralChemicalCoveredHopperCarLimeConsistType3, FreightCar
from train import MineralCoveredHopperCarLimeConsistType3, FreightCar


def main(roster_id, **kwargs):
# --------------- standard gauge ---------------------------------------------------------------
"""
consist = MineralChemicalCoveredHopperCarLimeConsistType3(
consist = MineralCoveredHopperCarLimeConsistType3(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=25990,
Expand All @@ -15,7 +15,7 @@ def main(roster_id, **kwargs):
consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")
consist = MineralChemicalCoveredHopperCarLimeConsistType3(
consist = MineralCoveredHopperCarLimeConsistType3(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=26000,
Expand All @@ -26,7 +26,7 @@ def main(roster_id, **kwargs):
consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")
"""
consist = MineralChemicalCoveredHopperCarLimeConsistType3(
consist = MineralCoveredHopperCarLimeConsistType3(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=34840,
Expand All @@ -37,7 +37,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")

consist = MineralChemicalCoveredHopperCarLimeConsistType3(
consist = MineralCoveredHopperCarLimeConsistType3(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=33820,
Expand All @@ -48,7 +48,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_24px")

consist = MineralChemicalCoveredHopperCarLimeConsistType3(
consist = MineralCoveredHopperCarLimeConsistType3(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=33030,
Expand All @@ -59,7 +59,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_greebled_16px")

consist = MineralChemicalCoveredHopperCarLimeConsistType3(
consist = MineralCoveredHopperCarLimeConsistType3(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=34850,
Expand All @@ -70,7 +70,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_filled_greebled_24px")

consist = MineralChemicalCoveredHopperCarLimeConsistType3(
consist = MineralCoveredHopperCarLimeConsistType3(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=36340,
Expand Down
10 changes: 5 additions & 5 deletions src/vehicles/pony/roller_roof_hopper_cars_randomised_pony.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from train import CoveredHopperCarRollerRoofRandomisedConsist, FreightCar
from train import MineralCoveredHopperCarRollerRoofRandomisedConsist, FreightCar


def main(roster_id, **kwargs):
# --------------- standard gauge ---------------------------------------------------------------
consist = CoveredHopperCarRollerRoofRandomisedConsist(
consist = MineralCoveredHopperCarRollerRoofRandomisedConsist(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24650,
Expand All @@ -14,7 +14,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="empty_16px")

consist = CoveredHopperCarRollerRoofRandomisedConsist(
consist = MineralCoveredHopperCarRollerRoofRandomisedConsist(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24670,
Expand All @@ -25,7 +25,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="empty_24px")

consist = CoveredHopperCarRollerRoofRandomisedConsist(
consist = MineralCoveredHopperCarRollerRoofRandomisedConsist(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24690,
Expand All @@ -36,7 +36,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="empty_16px")

consist = CoveredHopperCarRollerRoofRandomisedConsist(
consist = MineralCoveredHopperCarRollerRoofRandomisedConsist(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24710,
Expand Down
10 changes: 5 additions & 5 deletions src/vehicles/pony/roller_roof_hopper_cars_type_1_pony.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from train import MineralChemicalCoveredHopperCarRollerRoofConsistType1, FreightCar
from train import MineralCoveredHopperCarRollerRoofConsistType1, FreightCar


def main(roster_id, **kwargs):
# --------------- standard gauge -----------------------------------------------------------------

consist = MineralChemicalCoveredHopperCarRollerRoofConsistType1(
consist = MineralCoveredHopperCarRollerRoofConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=23670,
Expand All @@ -15,7 +15,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")

consist = MineralChemicalCoveredHopperCarRollerRoofConsistType1(
consist = MineralCoveredHopperCarRollerRoofConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=16840,
Expand All @@ -26,7 +26,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_24px")

consist = MineralChemicalCoveredHopperCarRollerRoofConsistType1(
consist = MineralCoveredHopperCarRollerRoofConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=23730,
Expand All @@ -37,7 +37,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_greebled_16px")

consist = MineralChemicalCoveredHopperCarRollerRoofConsistType1(
consist = MineralCoveredHopperCarRollerRoofConsistType1(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=17160,
Expand Down
10 changes: 5 additions & 5 deletions src/vehicles/pony/roller_roof_hopper_cars_type_2_pony.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from train import MineralChemicalCoveredHopperCarRollerRoofConsistType2, FreightCar
from train import MineralCoveredHopperCarRollerRoofConsistType2, FreightCar


def main(roster_id, **kwargs):
# --------------- standard gauge -----------------------------------------------------------------

consist = MineralChemicalCoveredHopperCarRollerRoofConsistType2(
consist = MineralCoveredHopperCarRollerRoofConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24610,
Expand All @@ -15,7 +15,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_16px")

consist = MineralChemicalCoveredHopperCarRollerRoofConsistType2(
consist = MineralCoveredHopperCarRollerRoofConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=24630,
Expand All @@ -26,7 +26,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_24px")

consist = MineralChemicalCoveredHopperCarRollerRoofConsistType2(
consist = MineralCoveredHopperCarRollerRoofConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=34730,
Expand All @@ -37,7 +37,7 @@ def main(roster_id, **kwargs):

consist.add_unit(type=FreightCar, chassis="2_axle_gapped_greebled_16px")

consist = MineralChemicalCoveredHopperCarRollerRoofConsistType2(
consist = MineralCoveredHopperCarRollerRoofConsistType2(
roster_id=roster_id,
roster_id_providing_module=kwargs["roster_id_providing_module"],
base_numeric_id=33010,
Expand Down

0 comments on commit d762837

Please sign in to comment.