Changeset 713 for trunk/src/connectors.py
- Timestamp:
- 02/17/10 22:45:18 (2 years ago)
- Files:
-
- 1 modified
-
trunk/src/connectors.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/connectors.py
r712 r713 20 20 fabs, floor, fmod, hypot, ldexp, log, log10, modf, pi, power, \ 21 21 sin, sinh, sqrt, tan, tanh 22 from pyNN import random, common, errors 22 from pyNN import random, common, errors, core 23 23 from pyNN.space import Space 24 24 … … 116 116 # returned. 117 117 rarr = rng.next(N, 'uniform', (0, 1), mask_local=local) 118 if not co mmon.is_listlike(rarr) and common.is_number(rarr): # if N=1, rarr will be a single number118 if not core.is_listlike(rarr) and numpy.isscalar(rarr): # if N=1, rarr will be a single number 119 119 rarr = numpy.array([rarr]) 120 if common.is_number(p):120 if numpy.isscalar(p): 121 121 create = rarr < p 122 122 else:
