idq.names

describe module, architecture, etc

idq.names.basename2snax_filename(basename)[source]

given a basename, will return a glob-compatible filename compatible with a standard hdf5 set of features written to disk

idq.names.dir2start_dur(directory)[source]
extract start and duration from directory like

~/${start}_${end}/

idq.names.dir2start_end(directory)[source]
extract start and end from directory like

~/${start}_${end}/

idq.names.dirMOD1e52start_dur(directory)[source]
extract start and duration from directory name like

~/basename-${gpsMOD1e5}/

idq.names.dirMOD1e52start_end(directory)[source]
extract start and end from directory name like

~/basename-${gpsMOD1e5}/

idq.names.path2start_dur(path, suffix='trg')[source]

extract the start and duration from a standard LIGO file name

>>> start, dur = path2start_dur('/path/to/H1-SNAX-1234560000-20.h5', suffix='h5')
>>> (start, dur)
(1234560000, 20)
idq.names.path2start_end(path, suffix='trg')[source]

extract the start and duration from a standard LIGO file name

>>> path2start_end('/path/to/H1-SNAX-1234560000-20.h5', suffix='h5')
(1234560000, 1234560020)