Changeset 711 for trunk/src/neuron/simulator.py
- Timestamp:
- 02/16/10 10:59:22 (2 years ago)
- Files:
-
- 1 modified
-
trunk/src/neuron/simulator.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/neuron/simulator.py
r702 r711 29 29 30 30 from pyNN import __path__ as pyNN_path 31 from pyNN import common, random 31 from pyNN import common, random, errors 32 32 import platform 33 33 import logging … … 282 282 cell_model = getattr(h, cellclass) 283 283 except AttributeError: 284 raise common.InvalidModelError("There is no hoc template called %s" % cellclass)284 raise errors.InvalidModelError("There is no hoc template called %s" % cellclass) 285 285 cell_parameters = cellparams or {} 286 286 elif isinstance(cellclass, type) and issubclass(cellclass, common.StandardCellType): … … 463 463 if not isinstance(source, int) or source > state.gid_counter or source < 0: 464 464 errmsg = "Invalid source ID: %s (gid_counter=%d)" % (source, state.gid_counter) 465 raise common.ConnectionError(errmsg)465 raise errors.ConnectionError(errmsg) 466 466 if not common.is_listlike(targets): 467 467 targets = [targets] … … 473 473 for target in targets: 474 474 if not isinstance(target, common.IDMixin): 475 raise common.ConnectionError("Invalid target ID: %s" % target)475 raise errors.ConnectionError("Invalid target ID: %s" % target) 476 476 477 477 assert len(targets) == len(weights) == len(delays), "%s %s %s" % (len(targets),len(weights),len(delays))
