Skip to content

Commit 7b41607

Browse files
authored
Merge pull request #48 from NREL/network-validation
Network validation
2 parents ec96b59 + b48da76 commit 7b41607

File tree

10 files changed

+32822
-12284
lines changed

10 files changed

+32822
-12284
lines changed

applications/calibration/zanzeff_set_speed_train_cal.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ def get_train_sim_inputs(df: pd.DataFrame, file_path: Path) -> bytes:
116116
else:
117117
raise ValueError("Directionality is invalid.")
118118

119-
network = alt.import_network(
120-
str(alt.package_root() / "../../../data/StockToBar_10thPoint_corrected.yaml"))
119+
network = alt.Network.from_file(
120+
alt.package_root() / "../../../data/StockToBar_10thPoint_corrected.yaml")
121121

122122
max_offset = network[link_path[0].idx].length_meters - 1e3
123123

python/altrios/altrios_pyo3.pyi

-1
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,6 @@ class Link(SerdeAPI):
960960
def default(cls) -> Self: ...
961961

962962

963-
def import_network(filename: str) -> List[Link]: ...
964963
def import_locations(filename: str) -> Dict[str, List[Location]]: ...
965964
def import_rail_vehicles(filename: str) -> Dict[str, RailVehicle]: ...
966965

0 commit comments

Comments
 (0)