find_typed_function#
- gwpy.utils.lal.find_typed_function(
- pytype: type | DTypeLike,
- prefix: Literal[''],
- suffix: Literal['AverageSpectrumMedian', 'AverageSpectrumMedianMean', 'AverageSpectrumWelch'],
- module: ModuleType = lal,
- gwpy.utils.lal.find_typed_function(
- pytype: type | DTypeLike,
- prefix: Literal['Create'],
- suffix: Literal['FFTPlan'],
- module: ModuleType = lal,
- gwpy.utils.lal.find_typed_function(
- pytype: type | DTypeLike,
- prefix: Literal['Create'],
- suffix: Literal['FrequencySeries'],
- module: ModuleType = lal,
- gwpy.utils.lal.find_typed_function(
- pytype: type | DTypeLike,
- prefix: Literal['Create'],
- suffix: Literal['Sequence'],
- module: ModuleType = lal,
- gwpy.utils.lal.find_typed_function(
- pytype: type | DTypeLike,
- prefix: Literal['Create'],
- suffix: Literal['TimeSeries'],
- module: ModuleType = lal,
- gwpy.utils.lal.find_typed_function(
- pytype: type | DTypeLike,
- prefix: Literal['Create'],
- suffix: Literal['WindowFromSequence'],
- module: ModuleType = lal,
- gwpy.utils.lal.find_typed_function(
- pytype: type | DTypeLike,
- prefix: Literal['CreateNamed'],
- suffix: Literal['Window'],
- module: ModuleType = lal,
Return the lal method for the correct type.
- Parameters:
- pytype
type,numpy.dtype The python type, or dtype, to map.
- prefix
str The function name prefix (before the type tag).
- suffix
str The function name suffix (after the type tag).
- module
ModuleType The module in which to search for the function. Default is
lal.
- pytype
- Raises:
AttributeErrorIf the function is not found.
Examples
>>> from gwpy.utils.lal import find_typed_function >>> find_typed_function(float, 'Create', 'Sequence') <built-in function CreateREAL8Sequence>