metawards.utils.Workspace

class metawards.utils.Workspace

This class provides a workspace for the running calculation. This pre-allocates all of the memory into arrays, which can then be used via cython memory views

__init__(self, network: Network)

Create the workspace needed to run the model for the passed network

Attributes

zero_all Reset the values of all of the arrays to zero
zero_all

Reset the values of all of the arrays to zero