morpho.processors.IO.IOProcessor module

Some template vars

Members: IOProcessor

Functions:

Classes:

Base input/output processor for reading and writing operations Authors: M. Guigue Date: 06/26/18

Summary

Data:

Reference

class morpho.processors.IO.IOProcessor.IOProcessor(name, *args, **kwargs)[source]

Bases: morpho.processors.BaseProcessor.BaseProcessor

IO_Processor All Processors will be implemented in a child class where the specifics are encoded by overwriting Configure and Run.

Parameters:
  • filename (required) – path/name of file
  • variables (required) – variables to extract
  • action – read or write (default=”read”)
Input:
None
Results:
data: dictionary containing the data
Reader()[source]

Need to be defined by the child class

Writer()[source]

Need to be defined by the child class

InternalConfigure(params)[source]

This method will be called by nymph to configure the processor

InternalRun()[source]

This method will read or write an file