예제 #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()
예제 #2
0
파일: node.py 프로젝트: nrnhines/nrntmp
 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()
예제 #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()
예제 #4
0
 def d(self, value):
     _volumes, _surface_area, _diffs = node._get_data()
     _diffs[self.indices()] = value
     rxd._setup_matrices()
예제 #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()    
예제 #6
0
 def d(self, value):
     _volumes, _surface_area, _diffs = node._get_data()
     _diffs[self.indices()] = value
     rxd._setup_matrices()