morpho.processors.misc.ProcessorAssistant module

Some template vars

Members: ProcessorAssistant

Functions:

Classes:

Create a wrapping processor from a function given in a python script Authors: M. Guigue Date: 06/26/18

Summary

Data:

Reference

class morpho.processors.misc.ProcessorAssistant.ProcessorAssistant(name, *args, **kwargs)[source]

Bases: morpho.processors.BaseProcessor.BaseProcessor

Convenience wrapper that creates a processor around a function from an external python script The parameters of the function are given in the same configuration dictionary.

Parameters:
  • module_name (required) – path/name of the python script
  • function_name (required) – name of the function to execute
Input:
None
Results:
results: dictionary containing the result of the function
InternalConfigure(config_dict)[source]

Method called by Configure() to set up the object. Must be overridden by child class.

InternalRun()[source]

Method called by Run() to run the object. Must be overridden by child class.