Skip to content

Commit

Permalink
more empty folders need to be created
Browse files Browse the repository at this point in the history
tm2py run failed when maz_demand, air_passenger and commercial folders did not already exist
  • Loading branch information
i-am-sijia committed Dec 11, 2024
1 parent 57f1f17 commit 2fbf342
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tm2py/setup_model/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ def run_setup(self):
"CTRAMP",
"ctramp_output",
"demand_matrices",
"demand_matrices/highway",
"demand_matrices/highway/air_passenger",
"demand_matrices/highway/household",
"demand_matrices/highway/maz_demand",
"demand_matrices/highway/internal_external",
"demand_matrices/highway/commercial",
"demand_matrices/transit",
"emme_project",
"inputs",
"logs",
Expand Down Expand Up @@ -155,7 +162,7 @@ def _create_folder_structure(self, folder_names, root_dir, logger):
for folder in folder_names:
path = os.path.join(root_dir, folder)
os.makedirs(path)
# logger.info(f" Created Empty Folder: {path}")
logger.info(f" Created Empty Folder: {path}")

def _copy_folder(self, src_dir, dest_dir, logger):
"""
Expand Down

0 comments on commit 2fbf342

Please sign in to comment.