示例#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()