class Parameters(pnl.TransferMechanism.Parameters): variable = pnl.Parameter(np.array([[0], [0], [0]]), read_only=True) def _validate_variable(self, variable): if not isinstance( variable, np.ndarray) or not variable.shape == np.array( [[0], [0], [0]]).shape: return 'must be 2d numpy array of shape (3, 1)'
class Parameters(TransferMechanism.Parameters): offset = pnl.Parameter(0, modulable=True)