gwsumm.data.utils module

Utilities for data loading and pre-processing

class gwsumm.data.utils.FftParams(**kwargs)[source]

Bases: object

Convenience object to hold signal-processing parameters

dict()[source]
fftlength
method
overlap
scheme
stride
window
gwsumm.data.utils.get_fftparams(channel, **defaults)[source]
gwsumm.data.utils.make_globalv_key(channels, fftparams=None)[source]

Generate a unique key for storing data in a globalv dict

Parameters:
channelsstr, list

one or more channels to group in this key

fftparamsFftParams

structured set of signal-processing parameters used to generate the dataset

gwsumm.data.utils.use_configparser(f)[source]

Decorate a method to use a valid default for ‘config’

This is just to allow lazy passing of config=None

gwsumm.data.utils.use_segmentlist(f)[source]

Decorate a method to convert incoming segments into a SegmentList

This assumes that the method to be decorated takes a segment list as the second positionsl argument.