models.node.generator package#

Subpackages#

Submodules#

models.node.generator.generator_node module#

class models.node.generator.generator_node.GeneratorNode(parameters=None)[source]#

Bases: Node

This node is the basic implementation of the nodes that generates data. It contains the basic methods that are common to all the generator nodes, so that it can be inherited by the other generator nodes.

Parameters:

parameters (dict) – The parameters that were passed to the node. This comes from the configuration file.

Raises:

MissingParameterError – The buffer_options dictionary is required.

models.node.generator.motorimagery module#

models.node.generator.openbciboard module#

models.node.generator.single_run_generator_node module#

class models.node.generator.single_run_generator_node.SingleRunGeneratorNode(parameters=None)[source]#

Bases: GeneratorNode

This node generates data for a single run. This node is not meant to be used directly, but to be inherited by other nodes that implement the _generate_data method. This method is responsible for generating the data for a single run. The node will generate the data, and then stop executing.

Parameters:

parameters (dict) – The parameters of the node(default: None).

abstract dispose() None[source]#

Node self implementation of disposal of allocated resources.

run(data: FrameworkData | None = None, input_name: str | None = None) None[source]#

This method runs the node. It is called by the framework when the node is executed. If this is the first execution, it will run. If it is not the first execution, it will raise an exception.

Parameters:
  • data (FrameworkData) – The data that will be passed to the node. This comes from the previous node in the pipeline(default: None).

  • input_name (str) – The name of the input that the data comes from(default: None).

Raises:

Exception – If this is not the first execution.

Module contents#