def d(self, value): if hasattr(self, '_allow_setting'): self._d = value else: _volumes, _surface_area, _diffs = node._get_data() _diffs[self.indices()] = value rxd._setup_matrices()
def d(self, value): """Sets the diffusion rate within the compartment.""" import rxd # TODO: make invalidation work so don't need to redo the setup each time #rxd._invalidate_matrices() _diffs[self._index] = value rxd._setup_matrices()
def d(self, value): _volumes, _surface_area, _diffs = node._get_data() _diffs[self.indices()] = value rxd._setup_matrices()
def d(self, value): """Sets the diffusion rate within the compartment.""" # TODO: make invalidation work so don't need to redo the setup each time #rxd._invalidate_matrices() _diffs[self._index] = value rxd._setup_matrices()