Changeset 711 for trunk/src/brian/simulator.py
- Timestamp:
- 02/16/10 10:59:22 (2 years ago)
- Files:
-
- 1 modified
-
trunk/src/brian/simulator.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/brian/simulator.py
r702 r711 32 32 from itertools import izip 33 33 import scipy.sparse 34 from pyNN import common, cells 34 from pyNN import common, cells, errors 35 35 36 36 mV = brian.mV … … 267 267 eqs = brian.Equations(cellclass) 268 268 except Exception, errmsg: 269 raise common.InvalidModelError(errmsg)269 raise errors.InvalidModelError(errmsg) 270 270 v_thresh = cellparams['v_thresh'] 271 271 v_reset = cellparams['v_reset'] … … 477 477 assert len(targets) > 0 478 478 if not isinstance(source, common.IDMixin): 479 raise common.ConnectionError("source should be an ID object, actually %s" % type(source))479 raise errors.ConnectionError("source should be an ID object, actually %s" % type(source)) 480 480 for target in targets: 481 481 if not isinstance(target, common.IDMixin): 482 raise common.ConnectionError("Invalid target ID: %s" % target)482 raise errors.ConnectionError("Invalid target ID: %s" % target) 483 483 assert len(targets) == len(weights) == len(delays), "%s %s %s" % (len(targets),len(weights),len(delays)) 484 484 if common.is_conductance(targets[0]): … … 492 492 source_group = source.parent_group 493 493 except AttributeError, errmsg: 494 raise common.ConnectionError("%s. Maybe trying to connect from non-existing cell (ID=%s)." % (errmsg, source))494 raise errors.ConnectionError("%s. Maybe trying to connect from non-existing cell (ID=%s)." % (errmsg, source)) 495 495 target_group = targets[0].parent_group # we assume here all the targets belong to the same NeuronGroup 496 496 bc = self._get_brian_connection(source_group,
