# cbcflow.fields.basic module¶

Basic postprocessing fields.

These fields can all be created from the postprocessor from name only. This is useful when handling dependencies for a postprocessing field:

class DummyField(PPField):
def __init__(self, field_dep):
self.field_dep = field_dep

def compute(self, pp, spaces, problem):
val = pp.get(field_dep)
return val/2.0


If a postprocessing field depends only on basic fields to be calculated, the dependencies will be implicitly added to the postprocessor “on the fly” from the name alone:

field = DummyField("ABasicField")
pp = NSPostProcessor()

dependency = ANonBasicField("ABasicField")