Skip to content

Commit

Permalink
Merge pull request #66 from NREL/metrics_single_train
Browse files Browse the repository at this point in the history
Single train GHG and emissions metrics (metrics_single_train into main)
  • Loading branch information
calbaker authored Jul 2, 2024
2 parents 6c83741 + edc5a0f commit 72f3f82
Show file tree
Hide file tree
Showing 41 changed files with 2,162 additions and 671 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies = [
"plotly",
"typing_extensions",
"pyyaml",
"polars==0.18.7",
"polars==0.20.25",
"pyarrow",
"requests",
]
Expand Down
2 changes: 2 additions & 0 deletions python/altrios/altrios_pyo3.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ from typing_extensions import Self
from typing import Union, Tuple
from dataclasses import dataclass

# TODO: udpate to include api for `force_max` and `mu`


class SerdeAPI(object):
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion python/altrios/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

DEMAND_FILE = alt.resources_root() / "Default Demand.csv"
FUEL_EMISSIONS_FILE = alt.resources_root() / "metrics_inputs" / "GREET-CA_Emissions_Factors.csv"
GRID_EMISSIONS_FILE = alt.resources_root() / "metrics_inputs" / "Cambium22_MidCase_annual_gea.csv"
GRID_EMISSIONS_FILE = alt.resources_root() / "metrics_inputs" / "Cambium23_allScenarios_annual_gea.csv"
ELECTRICITY_PRICE_FILE = alt.resources_root() / "metrics_inputs" / "EIA_Electricity_Prices.csv"
LIQUID_FUEL_PRICE_FILE = alt.resources_root() / "metrics_inputs" / "EIA_Liquid_Fuel_Prices.csv"
BATTERY_PRICE_FILE = alt.resources_root() / "metrics_inputs" / "NREL_ATB_Battery_Cost_Forecasts.csv"
2 changes: 1 addition & 1 deletion python/altrios/demos/rollout_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
max_bel_share=target,
number_of_years=1,
results_folder=Path(__file__).parent / "results/case study/",
demand_file_path=File,
demand_file=File,
train_planner_config=train_planner_config,
count_unused_locomotives=False,
write_complete_results=False,
Expand Down
Loading

0 comments on commit 72f3f82

Please sign in to comment.