Skip to content

Commit

Permalink
Merge pull request #230 from SANDAG/reporter_active_fix
Browse files Browse the repository at this point in the history
Fix active skim columns in travel time reporter
  • Loading branch information
bhargavasana authored Oct 29, 2024
2 parents b2b3eda + bfd0ca2 commit c5996c5
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 c5996c5

Please sign in to comment.