Skip to content

Commit

Permalink
Merge pull request #95 from NREL/mixed-consist-plus-wang-dev
Browse files Browse the repository at this point in the history
Integration of private repo changes into train planner improvements
  • Loading branch information
mbbruch authored Sep 24, 2024
2 parents 4b56ac7 + 31157e3 commit 2791f87
Show file tree
Hide file tree
Showing 5 changed files with 394 additions and 241 deletions.
1 change: 1 addition & 0 deletions python/altrios/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

LOCO_LIFESPAN = 20
ANNUAL_LOCO_TURNOVER = 1.0/LOCO_LIFESPAN
DEFAULT_GAP_SIZE = 0.604

DEMAND_FILE = alt.resources_root() / "Default Demand.csv"
FUEL_EMISSIONS_FILE = alt.resources_root() / "metrics_inputs" / "GREET-CA_Emissions_Factors.csv"
Expand Down
4 changes: 2 additions & 2 deletions python/altrios/demos/rollout_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
File = defaults.DEMAND_FILE
#targets = [0,0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5,0.55,0.6,0.65,0.7,0.75, 0.8]
train_planner_config = train_planner.TrainPlannerConfig(
cars_per_locomotive=50,
target_cars_per_train=90)
cars_per_locomotive={"Default": 50},
target_cars_per_train={"Default": 90})
targets = [0.5]
for target in targets:
scenario_infos, metrics = rollout.simulate_prescribed_rollout(
Expand Down
4 changes: 2 additions & 2 deletions python/altrios/demos/sim_manager_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
)

train_planner_config = train_planner.TrainPlannerConfig(
cars_per_locomotive=50,
target_cars_per_train=90)
cars_per_locomotive={"Default": 50},
target_cars_per_train={"Default": 90})

t0_main = time.perf_counter()

Expand Down
Loading

0 comments on commit 2791f87

Please sign in to comment.