utils.get_detector_fnames#

Back to Module page

Summary#

Signature#

def get_detector_fnames(t, chirp_mass_id = 0, subbank = None, run = None, source = 'BBH', use_HM = False, dname = None, detectors = ('H1', 'L1', 'V1'), return_only_existing = True)
Input variables#

Name

Type

Default

Description

t

GPS time

chirp_mass_id

0

Chirp mass bank id

subbank

None

Subbank id, if None, returns all subbanks

run

None

Run name, if None, figures it out from t and use_HM

source

‘BBH’

Source type (BBH, NSBH, BNS)

use_HM

False

If True, uses HM run names

dname

None

If not None, returns the json files in this directory

detectors

(‘H1’, ‘L1’, ‘V1’)

List of detectors to return files for

return_only_existing

True

If True, returns only existing files and None for missing ones

Output variables#

Return annotation

Docstring type

Description

None

An n_detector array of json file names for the TriggerLists at time t

Docstring#

:param t: GPS time
:param chirp_mass_id: Chirp mass bank id
:param subbank: Subbank id, if None, returns all subbanks
:param run: Run name, if None, figures it out from t and use_HM
:param source: Source type (BBH, NSBH, BNS)
:param use_HM: If True, uses HM run names
:param dname: If not None, returns the json files in this directory
:param detectors: List of detectors to return files for
:param return_only_existing:
    If True, returns only existing files and None for missing ones
:return:
    An n_detector array of json file names for the TriggerLists at time t