Giter Club home page Giter Club logo

jobsoncondor's Introduction

Main directory

To create the description of the jobs needed to run over a dataset the following command can be used

sh RunDataset.sh -e myanalysis.py \
    -d dataset_name \
    -o output_dir
    -x xsec \
    -l integ_luminosity \
    -s is_signal
    -p full_path_to_proxy \
    -c full_path_to_cmssw

The output is a jobdescription.txt file which will list all the arguments to be used to process single files. Before submitting to condor, test locally that a single file will be processed as desired by doing

sh RunDataset.sh `head -n 1 jobdescription.txt`

If all looks good you can submit to condor by doing

condor_submit jobdescription.sub

Directory "python"

same rationale of main directory but RunDataset is now a python script. However, I get a sintax error in the line:

p = subprocess.Popen([f'dasgoclient --query="file dataset={dataset} instance=prod/phys03"'],

Directory Fixed arguments

Like Main directory but with the arguments hardcoded in the .sh. Was only used to test that the arguments were passed corrrectly

Directory Inverted Order

To try to find a way around the parsing problem I tried to run first the .sh script that does the parsing and then while looping on the files, calling condor submit for each file However apparently one cannot call condor_submit in this way or a "Missing file or directory" error will appear.

Directory Pre_Post script

I was also trying to add a Post script to do hadd of the final files, but I was getting permission errors (even though I did chmod +x *) This is a completely second order problem

jobsoncondor's People

Contributors

johanwulff avatar giacomodamolin avatar pfs avatar

Watchers

 avatar

Forkers

pfs

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.