Changeset 352
- Timestamp:
- 06/11/08 17:18:49 (5 months ago)
- Files:
-
- branches/0.4/src/common.py (modified) (1 diff)
- branches/0.4/src/hoc/standardCells.hoc (modified) (1 diff)
- branches/0.4/src/neuron/__init__.py (modified) (3 diffs)
- branches/0.4/src/neuron/cells.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/0.4/src/common.py
r342 r352 315 315 % (pname, cls.__name__, D['forward_transform'], parameters)) 316 316 except ZeroDivisionError: 317 pval = 1e30 0# this is about the highest value hoc can deal with317 pval = 1e30 # this is about the highest value hoc can deal with 318 318 native_parameters[pname] = pval 319 319 return native_parameters branches/0.4/src/hoc/standardCells.hoc
r286 r352 271 271 spiketimes.append(input_spiketimes) 272 272 } 273 } else { 274 source.start = start 275 source.interval = interval 276 source.number = number 273 277 } 274 278 } branches/0.4/src/neuron/__init__.py
r351 r352 111 111 def set_native_parameters(self, parameters): 112 112 cell = self._hoc_cell() 113 logging.debug("Setting %s in %s" % (parameters, cell)) 113 114 for name, val in parameters.items(): 114 115 if hasattr(val, '__len__'): … … 790 791 p.set({'tau_m':20,'v_rest':-65}) 791 792 """ 793 792 794 if isinstance(param, str): 793 795 if isinstance(val, (str, float, int)): … … 801 803 else: 802 804 raise common.InvalidParameterValueError 805 logging.debug("Setting %s in %s" % (param_dict, self.label)) 803 806 for cell in self.gidlist: 804 807 cell.set_parameters(**param_dict) branches/0.4/src/neuron/cells.py
r277 r352 144 144 ('start', 'start'), 145 145 ('rate', 'interval', "1000.0/rate", "1000.0/interval"), 146 ('duration', 'number', "rate /1000.0*duration", "number*interval"), # should there be a +/1 here?146 ('duration', 'number', "rate!=0 and rate/1000.0*duration or 1", "number*interval"), # should there be a +/1 here? 147 147 ) 148 148 # note that 'number' should really be an integer, but it is better to leave it as

