find_typed_function#

gwpy.utils.lal.find_typed_function(
pytype: type | DTypeLike,
prefix: Literal[''],
suffix: Literal['AverageSpectrumMedian', 'AverageSpectrumMedianMean', 'AverageSpectrumWelch'],
module: ModuleType = lal,
) Callable[[LALFrequencySeriesType, LALTimeSeriesType, int, int, LALWindowType, LALFFTPlanType], int][source]#
gwpy.utils.lal.find_typed_function(
pytype: type | DTypeLike,
prefix: Literal['Create'],
suffix: Literal['FFTPlan'],
module: ModuleType = lal,
) Callable[[int, int, int], LALFFTPlanType]
gwpy.utils.lal.find_typed_function(
pytype: type | DTypeLike,
prefix: Literal['Create'],
suffix: Literal['FrequencySeries'],
module: ModuleType = lal,
) Callable[[str, lal.LIGOTimeGPS, float, float, lal.Unit, int], LALFrequencySeriesType]
gwpy.utils.lal.find_typed_function(
pytype: type | DTypeLike,
prefix: Literal['Create'],
suffix: Literal['Sequence'],
module: ModuleType = lal,
) Callable[[int], LALVectorType]
gwpy.utils.lal.find_typed_function(
pytype: type | DTypeLike,
prefix: Literal['Create'],
suffix: Literal['TimeSeries'],
module: ModuleType = lal,
) Callable[[str | None, lal.LIGOTimeGPS, float, float, lal.Unit, int], LALTimeSeriesType]
gwpy.utils.lal.find_typed_function(
pytype: type | DTypeLike,
prefix: Literal['Create'],
suffix: Literal['WindowFromSequence'],
module: ModuleType = lal,
) Callable[[LALVectorType], LALWindowType]
gwpy.utils.lal.find_typed_function(
pytype: type | DTypeLike,
prefix: Literal['CreateNamed'],
suffix: Literal['Window'],
module: ModuleType = lal,
) Callable[[str, float, int], LALWindowType]

Return the lal method for the correct type.

Parameters:
pytypetype, numpy.dtype

The python type, or dtype, to map.

prefixstr

The function name prefix (before the type tag).

suffixstr

The function name suffix (after the type tag).

moduleModuleType

The module in which to search for the function. Default is lal.

Raises:
AttributeError

If the function is not found.

Examples

>>> from gwpy.utils.lal import find_typed_function
>>> find_typed_function(float, 'Create', 'Sequence')
<built-in function CreateREAL8Sequence>