titus.inspector.defs.Model

class titus.inspector.defs.Model(obj)[source]

Bases: object

A loaded JSON or PFA file.

Always has an obj member, representing the Pythonized JSON that was loaded from the file.

Lazy-evaluates an engineConfig member the first time it is requested. This is a titus.pfaast.EngineConfig representing the abstract syntax tree of the PFA file. If the PFA file contains an error, attempting to access the engineConfig property yields an exception (titus.errors.AvroException, titus.errors.SchemaParseException, or titus.errors.PFAException).

Lazy-evaluates an engine member the first time it is requested. This is a titus.genpy.PFAEngine representing an executable scoring engine. If the PFA file contains an error, attempting to access the engineConfig property yields an exception (titus.errors.AvroException, titus.errors.SchemaParseException, or titus.errors.PFAException).

__init__(obj)
engine
engineConfig
reset()