Nektar++
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
nektar._exporter.NektarExporter Class Reference
Inheritance diagram for nektar._exporter.NektarExporter:
[legend]

Public Member Functions

 info (self)
 

Protected Member Functions

 _dir (self, root)
 
 _dict (self)
 
 _vars (self, model, protocol, name=None, variants=None, initial_states=None)
 

Detailed Description

This class exports a myokit cell model to Nektar++ code for
use in the CardiacEPSolver.

Definition at line 12 of file _exporter.py.

Member Function Documentation

◆ _dict()

nektar._exporter.NektarExporter._dict (   self)
protected

Definition at line 24 of file _exporter.py.

24 def _dict(self):
25 return {'model.cpp': 'model.cpp',
26 'model.h': 'model.h'}
27

◆ _dir()

nektar._exporter.NektarExporter._dir (   self,
  root 
)
protected

Definition at line 21 of file _exporter.py.

21 def _dir(self, root):
22 return os.path.join(os.getcwd(), 'nektar', 'template')
23

◆ _vars()

nektar._exporter.NektarExporter._vars (   self,
  model,
  protocol,
  name = None,
  variants = None,
  initial_states = None 
)
protected

Definition at line 28 of file _exporter.py.

28 def _vars(self, model, protocol, name=None, variants=None, initial_states=None):
29 if initial_states and not variants:
30 raise AssertionError('If `initial_states` is passed, `variants` must also be passed')
31 return {'model': model,
32 'protocol': protocol,
33 'name': name,
34 'variants': variants,
35 'initial_states': initial_states}

◆ info()

nektar._exporter.NektarExporter.info (   self)

Definition at line 17 of file _exporter.py.

17 def info(self):
18 import inspect
19 return inspect.getdoc(self)
20