bucky.model.state
#
Provide a class to hold the internal state vector to the compartment model (and track compartment indices).
Module Contents#
Classes#
Class to manage the state of the bucky compartments (and their indices). |
Functions#
|
Ensure the values of the slice aren't cupy arrays to prevent an unsupported implict conversion in |
- class bucky.model.state.buckyState(structure_cfg, Nij, state=None, dtype=xp.float32)[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.
- property state_shape(self)#
Return the shape of the internal state ndarray.