gwdetchar.utils.condor module¶
HTCondor utilities for gwdetchar
- gwdetchar.utils.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.utils.condor.is_valid(tag, path='/etc/condor/accounting/valid_tags')[source]¶
Determine whether an accounting tag is valid, and raise an exception if not
- gwdetchar.utils.condor.load_accounting_tags(path='/etc/condor/accounting/valid_tags')[source]¶
Load the list of known accounting tags
- gwdetchar.utils.condor.validate_accounting_tag(tag, path='/etc/condor/accounting/valid_tags')[source]¶
Validate a given accounting tag
This loads the list of known accounting tags from
pathand checks fortagin that list.- Returns:
- True
if
tagis found in the list of tags- False
if
tagis not found in the list of tags