Skip to content

Commit

Permalink
Merge pull request #200 from SANDAG/remove_unused_dirs
Browse files Browse the repository at this point in the history
Remove unused input_truck and visualizer folders in scenario
  • Loading branch information
bhargavasana authored Sep 3, 2024
2 parents a2cfa4c + ebcaa68 commit ee9d97d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/main/emme/toolbox/master_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ def __call__(self, main_directory, scenario_id, scenario_title, emmebank_title,
drive, path_no_drive = os.path.splitdrive(self._path)
path_forward_slash = path_no_drive.replace("\\", "/")
input_dir = _join(self._path, "input")
input_truck_dir = _join(self._path, "input_truck")
output_dir = _join(self._path, "output")
validation_dir = _join(self._path, "analysis/validation")
main_emmebank = _eb.Emmebank(_join(self._path, "emme_project", "Database", "emmebank"))
Expand Down
2 changes: 1 addition & 1 deletion src/main/emme/toolbox/model/external_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
input_dir = os.path.join(main_directory, "input")
base_scenario = modeller.scenario
external_internal = modeller.tool("sandag.model.external_internal")
external_internal(input_dir, input_truck_dir, base_scenario)
external_internal(input_dir, base_scenario)
"""

TOOLBOX_ORDER = 61
Expand Down
4 changes: 1 addition & 3 deletions src/main/emme/toolbox/utilities/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def download(self, remote_dir, user_folder, scenario_id, initialize, file_masks)
if initialize:
# make sure that all of the root directories are created
root_dirs = [
"application", "bin", "conf", "emme_project", "input", "input_truck",
"application", "bin", "conf", "emme_project", "input",
"logFiles", "output", "python", "report", "sql", "uec"
]
for name in root_dirs:
Expand Down Expand Up @@ -189,8 +189,6 @@ def upload(self, remote_dir, user_folder, scenario_id, delete_local_files, file_
self._report = []
self._stats = {"size": 0, "count": 0}
if not file_masks:
# suggested defaults: "application", "bin", "input", "input_truck", "uec",
# "output\\iter*", "output\\*_1.csv", "output\\*_2.csv"
file_masks = []
# prepend the src dir to the project masks
file_masks = [_join(local_dir, p) for p in file_masks]
Expand Down
14 changes: 1 addition & 13 deletions src/main/resources/create_scenario.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set LANDUSE_INPUT_PATH=%5
set SUFFIX=%6

@echo creating scenario folders
set FOLDERS=input application bin conf input_truck logFiles output python report sql uec analysis visualizer visualizer\outputs\summaries input_checker src src\asim src\asim-cvm
set FOLDERS=input application bin conf logFiles output python report sql uec analysis input_checker src src\asim src\asim-cvm
for %%i in (%FOLDERS%) do (
md %SCENARIO_FOLDER%\%%i)

Expand All @@ -38,8 +38,6 @@ xcopy /Y .\common\bin\"*.*" %SCENARIO_FOLDER%\bin
rem xcopy /Y .\conf\%YEAR%\"*.*" %SCENARIO_FOLDER%\conf
xcopy /Y .\common\conf\"*.*" %SCENARIO_FOLDER%\conf
xcopy /Y .\common\output\"*.*" %SCENARIO_FOLDER%\output
xcopy /s/Y .\common\visualizer %SCENARIO_FOLDER%\visualizer
xcopy /s/Y .\dependencies.* %SCENARIO_FOLDER%\visualizer
xcopy /Y/s/E .\common\input\input_checker\"*.*" %SCENARIO_FOLDER%\input_checker
xcopy /Y/s/E .\common\src\asim\"*.*" %SCENARIO_FOLDER%\src\asim
xcopy /Y/s/E .\common\src\asim-cvm\"*.*" %SCENARIO_FOLDER%\src\asim-cvm
Expand All @@ -53,28 +51,18 @@ xcopy /Y .\common\input\geography\"*.*" %SCENARIO_FOLDER%\input
xcopy /Y .\common\input\geography\mgra\"*.*" %SCENARIO_FOLDER%\input
xcopy /Y .\common\input\geography\pmsa\"*.*" %SCENARIO_FOLDER%\input
xcopy /Y .\common\input\geography\taz\"*.*" %SCENARIO_FOLDER%\input
rem copy ctm paramter tables to input folder
xcopy /Y .\common\input\ctm\"*.*" %SCENARIO_FOLDER%\input
rem copy common model files to input folder
xcopy /Y .\common\input\model\"*.*" %SCENARIO_FOLDER%\input
rem copy common truck files to input_truck folder
xcopy /Y .\common\input\truck\"*.*" %SCENARIO_FOLDER%\input_truck
rem copy airport input files
xcopy /Y .\common\input\airports\"*.*" %SCENARIO_FOLDER%\input
rem copy ei input files
xcopy /Y .\common\input\ei\"*.*" %SCENARIO_FOLDER%\input
rem copy ie input files
xcopy /Y .\common\input\ie\"*.*" %SCENARIO_FOLDER%\input
rem copy ee input files
xcopy /Y .\common\input\ee\"*.*" %SCENARIO_FOLDER%\input
rem copy emfact input files
xcopy /Y .\common\input\emfact\"*.*" %SCENARIO_FOLDER%\input
rem copy special event input files
xcopy /Y .\common\input\specialevent\"*.*" %SCENARIO_FOLDER%\input
rem copy xborder input files
xcopy /Y .\common\input\xborder\"*.*" %SCENARIO_FOLDER%\input
rem copy visitor input files
xcopy /Y .\common\input\visitor\"*.*" %SCENARIO_FOLDER%\input
rem copy input checker config files
xcopy /Y .\common\input\input_checker\"*.*" %SCENARIO_FOLDER%
rem copy network inputs
Expand Down

0 comments on commit ee9d97d

Please sign in to comment.