Skip to content
Snippets Groups Projects
Commit bf49b04f authored by Roelofsen, Hans's avatar Roelofsen, Hans
Browse files

final tweak batch script

parent 20c05386
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ echo %timestamp% ...@@ -10,7 +10,7 @@ echo %timestamp%
REM CMD Line arguments: 1: data path. 2: year REM CMD Line arguments: 1: data path. 2: year
SET gdal_dir=C:/Program Files/QGIS 3.10/apps/Python37/Scripts SET gdal_dir=c:/users/roelo008/Miniconda3/envs/mrt/Scripts
SET start_dir=%CD% SET start_dir=%CD%
SET data_dir=%1% SET data_dir=%1%
SET zip_dir=1zip SET zip_dir=1zip
......
REM Task file for Batch Viewscape running
REM CLI arguments %1 input file path (ini file)
REM %2 output ID nr
REM %3 output file path
cd %AZ_BATCH_TASK_WORKING_DIR% cd %AZ_BATCH_TASK_WORKING_DIR%
REM Find and Replace in the INI file
fart -i -r %1 SHARED_DIR %AZ_BATCH_NODE_SHARED_DIR% fart -i -r %1 SHARED_DIR %AZ_BATCH_NODE_SHARED_DIR%
fart -i -r %1 WORKING_DIR %AZ_BATCH_TASK_WORKING_DIR% fart -i -r %1 WORKING_DIR %AZ_BATCH_TASK_WORKING_DIR%
fart -i -r %1 OUTPUT_NAME %2 fart -i -r %1 OUTPUT_NAME %2
......
...@@ -29,7 +29,7 @@ STORAGE_ACCOUNT_KEY = 'WaxZFarUCCOvJPdzH36uGroOMYwqOBzpEkk7vudY2K8dhryp0rihBPtNX ...@@ -29,7 +29,7 @@ STORAGE_ACCOUNT_KEY = 'WaxZFarUCCOvJPdzH36uGroOMYwqOBzpEkk7vudY2K8dhryp0rihBPtNX
STORAGE_ACCOUNT_DOMAIN = 'blob.core.windows.net' # Your storage account blob service domain STORAGE_ACCOUNT_DOMAIN = 'blob.core.windows.net' # Your storage account blob service domain
POOL_ID = 'ViewscapePool01' # Your Pool ID POOL_ID = 'ViewscapePool01' # Your Pool ID
POOL_NODE_COUNT = 2 # Pool node count POOL_NODE_COUNT = 100 # Pool node count
POOL_VM_SIZE = 'STANDARD_DS2_V2' # VM Type/Size POOL_VM_SIZE = 'STANDARD_DS2_V2' # VM Type/Size
JOB_ID = 'Viewscape' # Job ID JOB_ID = 'Viewscape' # Job ID
STANDARD_OUT_FILE_NAME = 'stdout.txt' # Standard Output file STANDARD_OUT_FILE_NAME = 'stdout.txt' # Standard Output file
......
...@@ -474,7 +474,7 @@ if __name__ == "__main__": ...@@ -474,7 +474,7 @@ if __name__ == "__main__":
# Update the pool node count to match nr of run files # Update the pool node count to match nr of run files
if config.DEDICATED_POOL_NODE_COUNT == "auto": if config.DEDICATED_POOL_NODE_COUNT == "auto":
setattr(config, "DEDICATED_POOL_NODE_COUNT", len(run_file_paths)) setattr(config, "POOL_NODE_COUNT", len(run_file_paths))
else: else:
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment