Giter Site home page Giter Site logo

jobrunner's Introduction

Jobrunner

This program is used to sweep through a series of parameters when calling a program. For example

jobrunner.py "myprog -size {20,40} -age {30,50,55}"

Will print the following, which can be put in a script etc.:

myprog -size 20 -age 30
myprog -size 20 -age 50
myprog -size 20 -age 55
myprog -size 40 -age 30
myprog -size 40 -age 50
myprog -size 40 -age 55

Note that we pass the command line as a quoted string to prevent interferance by the shell. The ordering of the output command lines is arbitrary.

Typically myprog will append results to a file.

An additional syntax element is also supported. If multiple files need to be loaded relating to the same experimental unit, then we can do stem expansion:

jobrunner.py "myprog -auxfile {p: P01, P02}_auxfile.csv -datafile data{p:}.txt -size {20,40}"

will generate:

myprog -auxfile P01_auxfile.csv -datafile dataP01.txt -size 20
myprog -auxfile P02_auxfile.csv -datafile dataP02.txt -size 20
myprog -auxfile P01_auxfile.csv -datafile dataP01.txt -size 40
myprog -auxfile P02_auxfile.csv -datafile dataP02.txt -size 40

jobrunner's People

Contributors

mawds avatar

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.