hbp_nrp_cleserver.bibi_config.TransferFunctionASTParser module

This module inspects a transfer function and returns a formal object describing it

class StructureType[source]

Bases: object

Transfer function type

Neuron2Robot = 2
NeuronMonitor = 3
Robot2Neuron = 1
class TransferFunctionASTParser[source]

Bases: object

Transfer function source code parser that uses the generated AST to instrospect the TF structure

parse(code)[source]

Parses a TF code source

Returns

the structured TF

str_node(node)[source]

Stringifies an AST node