Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network validation #48

Merged
merged 8 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions applications/calibration/zanzeff_set_speed_train_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def get_train_sim_inputs(df: pd.DataFrame, file_path: Path) -> bytes:
else:
raise ValueError("Directionality is invalid.")

network = alt.import_network(
str(alt.package_root() / "../../../data/StockToBar_10thPoint_corrected.yaml"))
network = alt.Network.from_file(
alt.package_root() / "../../../data/StockToBar_10thPoint_corrected.yaml")

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

Expand Down
1 change: 0 additions & 1 deletion python/altrios/altrios_pyo3.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,6 @@ class Link(SerdeAPI):
def default(cls) -> Self: ...


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

Expand Down
Loading
Loading