Skip to content

Commit

Permalink
Changed export of transit routes to include mode name as a separate f…
Browse files Browse the repository at this point in the history
…ield from mode ID instead of overwriting it
  • Loading branch information
JoeJimFlood committed May 7, 2024
1 parent 0dfc094 commit ade2fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/emme/toolbox/export/export_data_loader_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ def export_as_csv(domain, attributes, scenario = None):
df_routeFull = pd.read_csv(os.path.join(export_path, 'trrt.csv'))
result = pd.merge(df_routeFull, df, how='left', on=['Route_Name'])
mode5tod = pd.read_csv(os.path.join(self.main_directory, 'input', 'MODE5TOD.csv')).set_index('MODE_ID')
result['Mode'] = result['Mode'].map(mode5tod['MODE_NAME'])
result['Mode_Name'] = result['Mode'].map(mode5tod['MODE_NAME'])
result.to_csv(os.path.join(export_path, 'transitRoute.csv'), index=False)
# if self.container:
# self.util_DataLakeExporter.write_to_datalake({'transitRoute':result})
Expand Down

0 comments on commit ade2fb6

Please sign in to comment.