TransientNode#

class liesel.model.nodes.TransientNode(*inputs, _name='', _needs_seed=False, **kwinputs)[source]#

Bases: liesel.model.nodes.Node

A node that does not cache its value.

A transient node is outdated if and only if at least one of its input nodes is outdated. The outdated property checks this condition on-the-fly.

Methods

all_input_nodes()

Returns all non-keyword and keyword input nodes as a frozen set.

all_output_nodes()

Returns all output nodes as a frozen set.

clear_state()

Clears the state of the node.

flag_outdated()

Flags the node and its recursive outputs as outdated.

set_inputs(*inputs, **kwinputs)

Sets the non-keyword and keyword input nodes.

update()

Does nothing.

Attributes

groups

The groups the node is part of.

inputs

The non-keyword input nodes.

kwinputs

The keyword input nodes.

model

The model the node is part of.

name

The name of the node.

needs_seed

Whether the node needs a seed / PRNG key.

outdated

Whether the node is outdated.

outputs

The output nodes.

state

The state of the node with the value None.

value

The value of the node.

var

The variable the node is part of.