Skip to content

Commit

Permalink
Fix active skim columns in travel time reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
aber-sandag committed Oct 29, 2024
1 parent b2b3eda commit bfd0ca2
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/main/python/TravelTimeReporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,22 @@ def read_active_skims(self):
Reads active skims into memory as data frames
"""
for skim_name in self.settings["active_skim_files"]:
self.skims[skim_name] = pd.read_csv(
os.path.join(
self.model_run,
"output",
"skims",
self.settings["active_skim_files"][skim_name]
active_skims = pd.read_csv(
os.path.join(
self.model_run,
"output",
"skims",
self.settings["active_skim_files"][skim_name]
)
).set_index(
)
if not "i" in active_skims.columns:
active_skims = active_skims.rename(
columns = {
"OMAZ": "i",
"DMAZ": "j",
}
)
self.skims[skim_name] = active_skims.set_index(
["i", "j"]
)

Expand Down

0 comments on commit bfd0ca2

Please sign in to comment.