gwdetchar.condor module

HTCondor utilities for gwdetchar

gwdetchar.condor.accounting_epoch(gpstime)[source]

Return the appropriate epoch for condor accounting tags

Examples

>>> from gwdetchar.condor import accounting_epoch
>>> print(accounting_epoch(1126259462))  # GW150914
'O1'
gwdetchar.condor.is_valid(tag, path='/etc/condor/accounting_groups.json')[source]

Determine whether an accounting tag is valid, and raise an exception if not

gwdetchar.condor.load_accounting_tags(path='/etc/condor/accounting_groups.json')[source]

Load the list of known accounting tags

gwdetchar.condor.validate_accounting_tag(tag, path='/etc/condor/accounting_groups.json')[source]

Validate a given accounting tag

This loads the list of known accounting tags from path and checks for tag in that list.

Returns:

True

if tag is found in the list of tags

False

if tag is not found in the list of tags