elphick.mass_composition.mc_node.MCNode

class elphick.mass_composition.mc_node.MCNode(node_id=0, node_name='Node', node_subset=0)[source]
__init__(node_id=0, node_name='Node', node_subset=0)[source]

Methods

__init__([node_id, node_name, node_subset])

add(direction)

The weighted addition of either node inputs or outputs

imbalance_report()

A html report of records that do not balance around the node

mass_sum(direction)

rtype:

Optional[DataFrame]

node_balance()

rtype:

Optional[DataFrame]

Attributes

balanced

inputs

node_type

output_node

outputs

add(direction)[source]

The weighted addition of either node inputs or outputs

Parameters:

direction (str) – ‘in’ | ‘out’

Return type:

Optional[DataFrame]

Returns:

imbalance_report()[source]

A html report of records that do not balance around the node

Returns:

Return type:

Path