Nektar++
Static Public Member Functions | List of all members
CellMLToNektar.pycml.mathml_lambda Class Reference
Inheritance diagram for CellMLToNektar.pycml.mathml_lambda:
[legend]

Static Public Member Functions

def create_new (elt, bound_var_names, body_expr)
 
- Static Public Member Functions inherited from CellMLToNektar.pycml.mathml
def clone (expr)
 

Additional Inherited Members

- Public Member Functions inherited from CellMLToNektar.pycml.mathml_constructor
def __init__ (self)
 
- Public Member Functions inherited from CellMLToNektar.pycml.mathml
def __init__ (self)
 
def __repr__ (self)
 
def __deepcopy__ (self, memo)
 
def clone_self (self, register=False)
 
def get_original_of_clone (self)
 
def get_component (self)
 
def model (self)
 
def eval (self, elt)
 
- Public Member Functions inherited from CellMLToNektar.pycml.element_base
def __init__ (self)
 
def __delattr__ (self, key)
 
def __setattr__ (self, key, value)
 
def rootNode (self)
 
def cmeta_id (self)
 
def xml_remove_child_at (self, index=-1)
 
def xml_doc (self)
 
def xml_properties (self)
 
- Public Attributes inherited from CellMLToNektar.pycml.element_base
 xml_attributes
 
- Properties inherited from CellMLToNektar.pycml.mathml
 component = property(get_component)
 

Detailed Description

Class representing the MathML lambda construct.

Note that we don't support lambda occuring in CellML models.  However, it is used
for defining special units conversion rules using the protocol syntax.

Definition at line 5384 of file pycml.py.

Member Function Documentation

◆ create_new()

def CellMLToNektar.pycml.mathml_lambda.create_new (   elt,
  bound_var_names,
  body_expr 
)
static
Create a new lambda from the sequence of bvar names and expression.

Definition at line 5391 of file pycml.py.

5391 def create_new(elt, bound_var_names, body_expr):
5392 """Create a new lambda from the sequence of bvar names and expression."""
5393 lambda_ = elt.xml_create_element(u'lambda', NSS[u'm'])
5394 for bvar_name in bound_var_names:
5395 bvar = elt.xml_create_element(u'bvar', NSS[u'm'])
5396 bvar.xml_append(mathml_ci.create_new(elt, bvar_name))
5397 lambda_.xml_append(bvar)
5398 check_append_safety(body_expr)
5399 lambda_.xml_append(body_expr)
5400 return lambda_
5401
5402
def create_new(parent, name, bases, add_to_parent=False, standard=False)
Definition: pycml.py:2912
def check_append_safety(elt)
Definition: pycml.py:197

References CellMLToNektar.pycml.check_append_safety().