LabviewPrinter

class chaste_codegen.LabviewPrinter(symbol_function=None, derivative_function=None, lookup_table_function=<function ChastePrinter.<lambda>>)[source]

Bases: ChastePrinter

Converts Sympy expressions to strings for use in Chaste code generation.

To use, create a ChastePrinter instance, and call its method doprint() with a Sympy expression argument.

Arguments:

symbol_function

A function that converts symbols to strings (variable names).

derivative_function

A function that converts derivatives to strings.

lookup_table_function

A function that prints lookup table expressions or returns None if the expression is not in the lookup table.