Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInference 4.1.9.1-b246709
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lalinference.wrapper.LIVariablesWrap Class Reference

Detailed Description

Definition at line 5 of file wrapper.py.

Inherits collections.abc.MutableMapping.

Public Member Functions

def __init__ (self, init=None)
 Wrapper to present a LALInferenceVariable as a dict. More...
 
def __delitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def __getitem__ (self, key)
 
def __iter__ (self)
 
def __len__ (self)
 
def __del__ (self)
 
def __repr__ (self)
 
def __str__ (self)
 
def varyType (self, key)
 Return the lalinference variable's varyType. More...
 
def type (self, key)
 Return the lalinference variable's varyType. More...
 

Data Fields

 owner
 
 v
 

Constructor & Destructor Documentation

◆ __init__()

def lalinference.wrapper.LIVariablesWrap.__init__ (   self,
  init = None 
)

Wrapper to present a LALInferenceVariable as a dict.

Parameters

init : dict Initialise with the given dictionary. If init is itself a LALInferenceVariables C struct then the wrapper will wrap around it but not reallocate memory

Definition at line 16 of file wrapper.py.

◆ __del__()

def lalinference.wrapper.LIVariablesWrap.__del__ (   self)

Definition at line 53 of file wrapper.py.

Member Function Documentation

◆ __delitem__()

def lalinference.wrapper.LIVariablesWrap.__delitem__ (   self,
  key 
)

Definition at line 25 of file wrapper.py.

◆ __setitem__()

def lalinference.wrapper.LIVariablesWrap.__setitem__ (   self,
  key,
  value 
)

Definition at line 30 of file wrapper.py.

◆ __getitem__()

def lalinference.wrapper.LIVariablesWrap.__getitem__ (   self,
  key 
)

Definition at line 37 of file wrapper.py.

◆ __iter__()

def lalinference.wrapper.LIVariablesWrap.__iter__ (   self)

Definition at line 49 of file wrapper.py.

◆ __len__()

def lalinference.wrapper.LIVariablesWrap.__len__ (   self)

Definition at line 51 of file wrapper.py.

◆ __repr__()

def lalinference.wrapper.LIVariablesWrap.__repr__ (   self)

Definition at line 56 of file wrapper.py.

◆ __str__()

def lalinference.wrapper.LIVariablesWrap.__str__ (   self)

Definition at line 58 of file wrapper.py.

◆ varyType()

def lalinference.wrapper.LIVariablesWrap.varyType (   self,
  key 
)

Return the lalinference variable's varyType.

Parameters

key : str The name of the variable to look up

Returns

varytype : lalinference.varyType (e.g. lalinference.LALINFERENCE_PARAM_FIXED)

Definition at line 72 of file wrapper.py.

◆ type()

def lalinference.wrapper.LIVariablesWrap.type (   self,
  key 
)

Return the lalinference variable's varyType.

Parameters

key : str The name of the variable to look up

Returns

type : the LALInference type (e.g. lalinference.LALINFERENCE_REAL8_t)

Definition at line 88 of file wrapper.py.

Field Documentation

◆ owner

lalinference.wrapper.LIVariablesWrap.owner

Definition at line 17 of file wrapper.py.

◆ v

lalinference.wrapper.LIVariablesWrap.v

Definition at line 19 of file wrapper.py.