Skip to content

Commit

Permalink
Input checker path bugfix, MTC reversion
Browse files Browse the repository at this point in the history
  • Loading branch information
americalexander committed Nov 14, 2023
1 parent d0e363c commit 0faae3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion activitysim/abm/models/input_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ def create_table_store(state, input_checker_settings):
break

else:
table = pd.read_csv(state.filesystem.get_data_file_path(table_name))
table = pd.read_csv(
state.filesystem.get_data_file_path(
table_name, alternative_suffixes=[".csv"]
)
)
if table is None:
raise FileNotFoundError(
f"Input table {table_name} could not be found" + f"\nPath: {path}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def check_all_skims_exist(cls, land_use: pd.DataFrame):
# code duplicated from skim_dict_factory.py but need to copy here to not load skim data
los_settings = state.filesystem.read_settings_file("network_los.yaml")
omx_file_paths = state.filesystem.expand_input_file_list(
los_settings["taz_skims"]
los_settings["taz_skims"]["omx"]
)
omx_manifest = dict()

Expand Down

0 comments on commit 0faae3f

Please sign in to comment.