Esempio n. 1
0
 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()
Esempio n. 2
0
 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()
Esempio n. 3
0
 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()
Esempio n. 4
0
 def d(self, value):
     _volumes, _surface_area, _diffs = node._get_data()
     _diffs[self.indices()] = value
     rxd._setup_matrices()
Esempio n. 5
0
 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()    
Esempio n. 6
0
 def d(self, value):
     _volumes, _surface_area, _diffs = node._get_data()
     _diffs[self.indices()] = value
     rxd._setup_matrices()