-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRunPopulationSim.bat
45 lines (34 loc) · 1.36 KB
/
RunPopulationSim.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
::~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:: Runs PopulationSim. User should specify the following
:: - Local Anaconda installation directory
:: - Assumes SetUpPopulationSim.bat has been run and Conda environment "popsim" exists
:: Binny Paul, [email protected], 121517
::~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ECHO OFF
ECHO %startTime%%Time%
SET BATCH_DIR=%~dp0
:: USER INPUTS
:: ---------------------------------------------------------------------
:: Local Anaconda installation directory
SET ANACONDA_DIR=E:\projects\clients\odot\PopulationSim\Anaconda2
:: ---------------------------------------------------------------------
SET PATH=%ANACONDA_DIR%\Library\bin;%PATH%
:: setup paths to Python application, Conda script, etc.
SET CONDA_ACT=%ANACONDA_DIR%\Scripts\activate.bat
ECHO CONDA_ACT: %CONDA_ACT%
SET CONDA_DEA=%ANACONDA_DIR%\Scripts\deactivate.bat
ECHO CONDA_DEA: %CONDA_DEA%
SET PYTHON=%ANACONDA_DIR%\envs\popsim\python.exe
ECHO PYTHON: %PYTHON%
:: run populationsim
ECHO Running PopulationSim....
CD %ANACONDA_DIR%\envs\popsim\Scripts
CALL %CONDA_ACT% popsim
CD %BATCH_DIR%
%PYTHON% run_populationsim.py
CD %ANACONDA_DIR%\envs\popsim\Scripts
CALL %CONDA_DEA%
CD %BATCH_DIR%
ECHO PopulationSim run complete!!
ECHO %startTime%%Time%
PAUSE