pytuflow.TEFRunState

pytuflow.TEFRunState#

class TEFRunState(build_state, context, parent)#

Bases: ControlFileRunState, TEFBase

Class for storing the run state of the TEF file.

This class should not be instantiated directly, but rather it should be created from an instance of a BuildState class using the context() method of the BuildState class.

Parameters:
  • build_state (TEF) – The TEF build state instance that the RunState object is based on.

  • context (Context) – The context instance that will be used to resolve the build state.

  • parent (ControlFileRunState) – The parent control file run state.

__init__(build_state, context, parent)#
Parameters:
  • build_state (BuildState) – The BuildState object that the RunState object is based on.

  • context (Context) – The context object that the RunState object is based on.

  • parent (ControlFile) – The parent control file.

Methods

context

Returns the ScopeList that makes up the objects Context for the given RunState Object.

event_database

Returns the EventDatabase for this TEF instance.

find_input

Find a particular input(s) using a search filter.

input

Returns the input with the given UUID.

parse_event_file

Static method to parse the event file and return an EventDatabase.

Attributes

TUFLOW_TYPE

Return the TUFLOW type of the input.

scope

List of scopes associated with the object.

tcf

The parent TCF control file object

bs

the BuildState object that the RunState object is based on.

parent

the parent control file

fpath

the path to the control file

config

the configuration settings for the model.

inputs

list of inputs and comments in the control file

loaded

whether the control file has been loaded from disk or not.

ctx

the context object that the RunState object is based on.