Functions | |
def | func_factory (operation, dtype) |
Returns the LAL function to perform the given operation for the relevant data type. More... | |
def | get_struct_name (series) |
Format a structure name into the understood type for LAL. More... | |
def | get_series_type (series) |
Find the LAL type enum for this series. More... | |
def | get_lal_type_str (datatype) |
Return the LAL type str for the given datatype More... | |
def | get_lal_type (datatype) |
Return the LAL type enum for the given datatype More... | |
def | get_numpy_type (datatype) |
Return the numpy type for the given datatype More... | |
def | duplicate (series) |
Duplicate a TimeSeries or FrequencySeries. More... | |
Variables | |
dictionary | LAL_TYPE_STR |
LAL_TYPE_FROM_STR = dict((v, k) for k, v in LAL_TYPE_STR.items()) | |
LAL_TYPE_STR_REGEX | |
dictionary | LAL_TYPE_FROM_NUMPY |
NUMPY_TYPE_FROM_LAL = dict((v, k) for k, v in LAL_TYPE_FROM_NUMPY.items()) | |
list | SERIES_OPERATIONS = ['create', 'destroy', 'cut', 'resize', 'shrink', 'add'] |
list | SERIES_TYPES = ['Time', 'Frequency'] |
list | STRUCT_TYPES = ['Sequence', 'Vector'] |
SERIES_REGEX | |
ARRAY_REGEX | |
STRUCT_REGEX | |
def lal.utils.series.func_factory | ( | operation, | |
dtype | |||
) |
Returns the LAL function to perform the given operation for the relevant data type.
Example::
>>> create = func_factory('create', 'real8timeseries') >>> create lal.CreateREAL8TimeSeries >>> ts = create(name, epoch, f0, deltaT, sampleUnits, length) >>> func_factory('resize', ts) lal.ResizeREAL8TimeSeries
Definition at line 93 of file utils/series.py.
def lal.utils.series.get_struct_name | ( | series | ) |
Format a structure name into the understood type for LAL.
Example::
>>> get_struct_name('real8timeseries') 'REAL8TimeSeries'
Definition at line 114 of file utils/series.py.
def lal.utils.series.get_series_type | ( | series | ) |
Find the LAL type enum for this series.
series | a LAL series object (e.g. REAL8TimeSeries) |
Definition at line 155 of file utils/series.py.
def lal.utils.series.get_lal_type_str | ( | datatype | ) |
Return the LAL type str for the given datatype
datatype | a dtype representation, normally a string, or a python/numpy type object |
Example::
>>> get_lal_type_str('uint32') 'UINT4' >>> get_lal_type_str(float) 'REAL8'
Definition at line 180 of file utils/series.py.
def lal.utils.series.get_lal_type | ( | datatype | ) |
Return the LAL type enum for the given datatype
datatype | a dtype representation, normally a string, or a python/numpy type object |
Example::
>>> get_lal_type('uint32') 34 >>> get_lal_type(float) 11
Definition at line 199 of file utils/series.py.
def lal.utils.series.get_numpy_type | ( | datatype | ) |
Return the numpy type for the given datatype
datatype | a dtype representation, normally a LAL type enum (int), a LAL type string, or a python/numpy type object |
Example::
>>> get_numpy_type(float) numpy.float64 >>> get_numpy_type('REAL8') numpy.float64 >>> get_numpy_type(11) numpy.float64
Definition at line 247 of file utils/series.py.
def lal.utils.series.duplicate | ( | series | ) |
Duplicate a TimeSeries or FrequencySeries.
Arguments:
series : [ TimeSeries | FrequencySeries ] input series to duplicate
Definition at line 264 of file utils/series.py.
dictionary lal.utils.series.LAL_TYPE_STR |
Definition at line 31 of file utils/series.py.
lal.utils.series.LAL_TYPE_FROM_STR = dict((v, k) for k, v in LAL_TYPE_STR.items()) |
Definition at line 43 of file utils/series.py.
lal.utils.series.LAL_TYPE_STR_REGEX |
Definition at line 44 of file utils/series.py.
dictionary lal.utils.series.LAL_TYPE_FROM_NUMPY |
Definition at line 48 of file utils/series.py.
lal.utils.series.NUMPY_TYPE_FROM_LAL = dict((v, k) for k, v in LAL_TYPE_FROM_NUMPY.items()) |
Definition at line 60 of file utils/series.py.
list lal.utils.series.SERIES_OPERATIONS = ['create', 'destroy', 'cut', 'resize', 'shrink', 'add'] |
Definition at line 64 of file utils/series.py.
list lal.utils.series.SERIES_TYPES = ['Time', 'Frequency'] |
Definition at line 65 of file utils/series.py.
list lal.utils.series.STRUCT_TYPES = ['Sequence', 'Vector'] |
Definition at line 66 of file utils/series.py.
lal.utils.series.SERIES_REGEX |
Definition at line 68 of file utils/series.py.
lal.utils.series.ARRAY_REGEX |
Definition at line 71 of file utils/series.py.
lal.utils.series.STRUCT_REGEX |
Definition at line 73 of file utils/series.py.