bucky.model.state

Provide a class to hold the internal state vector to the compartment model (and track compartment indices).

Module Contents

Classes

buckyState

Class to manage the state of the bucky compartments (and their indices).

Functions

slice_to_cpu(s)

class bucky.model.state.buckyState(consts, Nij, state=None)[source]

Class to manage the state of the bucky compartments (and their indices).

__getattribute__(self, attr)[source]

Allow for . access to the compartment indices, otherwise return the ‘normal’ attribute.

__setattr__(self, attr, x)[source]

Allow setting of compartments using . notation, otherwise default to normal attribute behavior.

init_S(self)[source]

Init the S compartment such that N=1.

property state_shape(self)[source]

Return the shape of the internal state ndarray.

zeros_like(self)[source]

Return a mostly shallow copy of self but with a zeroed out self.state

bucky.model.state.slice_to_cpu(s)[source]