bilby_pipe.asimov.asimov
Bilby Pipeline specification.
Classes
The Bilby Pipeline. |
Module Contents
- class bilby_pipe.asimov.asimov.Bilby(production, category=None)[source]
Bases:
asimov.pipeline.PipelineThe Bilby Pipeline.
- Parameters:
- production
asimov.Production The production object.
- categorystr, optional
The category of the job. Defaults to “C01_offline”.
- production
- detect_completion()[source]
Check for the production of the posterior file to signal that the job has completed.
- build_dag(psds=None, user=None, clobber_psd=False, dryrun=False)[source]
Construct a DAG file in order to submit a production to the condor scheduler using bilby_pipe.
- Parameters:
- productionstr
The production name.
- psdsdict, optional
The PSDs which should be used for this DAG. If no PSDs are provided the PSD files specified in the ini file will be used instead.
- userstr
The user accounting tag which should be used to run the job.
- dryrun: bool
If set to true the commands will not be run, but will be printed to standard output. Defaults to False.
- Raises:
- PipelineException
Raised if the construction of the DAG fails.
- submit_dag(dryrun=False)[source]
Submit a DAG file to the condor cluster.
- Parameters:
- dryrunbool
If set to true the DAG will not be submitted, but all commands will be printed to standard output instead. Defaults to False.
- Returns:
- int
The cluster ID assigned to the running DAG file.
- PipelineLogger
The pipeline logger message.
- Raises:
- PipelineException
This will be raised if the pipeline fails to submit the job.
Notes
This overloads the default submission routine, as bilby seems to store its DAG files in a different location
- collect_logs()[source]
Collect all of the log files which have been produced by this production and return their contents as a dictionary.