PyFoam.Basics.CustomPlotInfo module

Information about custom plots

class PyFoam.Basics.CustomPlotInfo.CustomPlotInfo(raw=None, name=None, enabled=True)[source]

Bases: object

Information about a custom plot

__dict__ = dict_proxy({'getDict': <function getDict>, '__module__': 'PyFoam.Basics.CustomPlotInfo', 'set': <function set>, '__dict__': <attribute '__dict__' of 'CustomPlotInfo' objects>, '__str__': <function __str__>, '__weakref__': <attribute '__weakref__' of 'CustomPlotInfo' objects>, 'nr': 1, '__init__': <function __init__>, '__doc__': 'Information about a custom plot'})
__init__(raw=None, name=None, enabled=True)[source]
Parameters:raw – The raw data. Either a string for the two legacy-formats or a

dictionary for the new format :param name: Name of the expression (only to be used for the new format) :param enabled: Should this plot be actually used?

__module__ = 'PyFoam.Basics.CustomPlotInfo'
__str__() <==> str(x)[source]
__weakref__

list of weak references to the object (if defined)

getDict(wrapStrings=False)[source]
nr = 1
set(key, value)[source]
PyFoam.Basics.CustomPlotInfo.cleanString(data)[source]
PyFoam.Basics.CustomPlotInfo.encloseString(data)[source]
PyFoam.Basics.CustomPlotInfo.readCustomPlotInfo(rawData, useName=None)[source]

Determines which of the three possible formats for custom-plotting is used and returns a list of CustomPlotInfo-objects :param rawData: a string that contains the raw data

PyFoam.Basics.CustomPlotInfo.resetCustomCounter()[source]

Reset the counter. Use with care