git clone https://github.com/yuchaz/sims_featureScheduler.git
- Mount this new repo onto docker
Be sure to run the following commands when starting the docker image each time so that the script can be run without being stopped.
git config --global user.email "EMAIL"
git config --global user.name "USER"
Install GitPython for stable git version control in python script
pip install gitpython
- run
cp setup.py.tpl setup.py
- Edit the
run_dir
andsims_fbs
path - run
python setup.py
for setting uppath.cfg
- Prepare a json files contains the weights that need to be run in batch
- The json file template can be found in here.
[
[3.0, 0.5, 3.0, 5.0, 3.0, 3.0],
[3.0, 2.7, 1.0, 3.1, 3.0, 3.0],
...
[1.1, 2.7, 1.0, 3.1, 3.0, 3.0]
]
- The length of the outer list is the total number of runs.
- Each weight list has length of six, each weight correspond to
M5_diff_basis_function
Target_map_basis_function
MeridianStripeBasisFunction
Slewtime_basis_function
Strict_filter_basis_function
Avoid_Fast_Revists
respectively.
- Use
python run_batch.py --help
for seeing instructions. --weights-list-path
: path to the weights JSON file--opsim-flags
: flags for opsim4. Useopsim4 --help
to see all the flags that can be set. Need to be included in quote--run-dir
: If one wants to use a differentrun_dir
other than the one set as default before.
python run_batch.py --weights-list-path weights.json --opsim-flags '--frac-duration 0.003 -v'
- Subprocess error handling