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/valid_tags')[source]¶
Determine whether an accounting tag is valid, and raise an exception if not
- gwdetchar.condor.load_accounting_tags(path='/etc/condor/accounting/valid_tags')[source]¶
Load the list of known accounting tags
- gwdetchar.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
path
and checks fortag
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