Skip to content

Running fits on HTCondor #1807

Answered by matthewfeickert
ssaha1234 asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a way to setup pyhf on condor and submit the jobs ? I am thinking if we have to write a shell script wrapper for it?

There's nothing specific to pyhf here. If you want to load a particular environment then you need to ensure that environment gets loaded in your HTCondor submit file's Executable. So if you make your Executable a shell script (e.g. example.sh) you would already have generated your Python virtual environment in advance in a location that is accessible by HTCondor (so you're not creating it over and over each time you run) and then source that Python virtual environment before you do anything.

For example, if you were on a CVMFS machine and had a Python virtual env…

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@kratsg
Comment options

@ssaha1234
Comment options

@kratsg
Comment options

@ssaha1234
Comment options

@ssaha1234
Comment options

Answer selected by ssaha1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants