Giter Site home page Giter Site logo

fbs_batch_run's Introduction

Update the new sims_featurescheduler

  1. git clone https://github.com/yuchaz/sims_featureScheduler.git
  2. Mount this new repo onto docker

Docker setup

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

Path setup

  1. run cp setup.py.tpl setup.py
  2. Edit the run_dir and sims_fbs path
  3. run python setup.py for setting up path.cfg

Prepare weights JSON files

  1. Prepare a json files contains the weights that need to be run in batch
  2. 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]
]
  1. The length of the outer list is the total number of runs.
  2. 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.

CLI

  1. Use python run_batch.py --help for seeing instructions.
  2. --weights-list-path: path to the weights JSON file
  3. --opsim-flags: flags for opsim4. Use opsim4 --help to see all the flags that can be set. Need to be included in quote
  4. --run-dir: If one wants to use a different run_dir other than the one set as default before.

Example commands

python run_batch.py --weights-list-path weights.json --opsim-flags '--frac-duration 0.003 -v'

TODO

  • Subprocess error handling

fbs_batch_run's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.