Show
Ignore:
Timestamp:
02/17/10 22:45:18 (2 years ago)
Author:
apdavison
Message:

Moved standard model (cells and synapses) machinery out of the common module into its own module

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/connectors.py

    r712 r713  
    2020                  fabs, floor, fmod, hypot, ldexp, log, log10, modf, pi, power, \ 
    2121                  sin, sinh, sqrt, tan, tanh 
    22 from pyNN import random, common, errors 
     22from pyNN import random, common, errors, core 
    2323from pyNN.space import Space 
    2424 
     
    116116            # returned. 
    117117            rarr = rng.next(N, 'uniform', (0, 1), mask_local=local) 
    118             if not common.is_listlike(rarr) and common.is_number(rarr): # if N=1, rarr will be a single number 
     118            if not core.is_listlike(rarr) and numpy.isscalar(rarr): # if N=1, rarr will be a single number 
    119119                rarr = numpy.array([rarr]) 
    120             if common.is_number(p): 
     120            if numpy.isscalar(p): 
    121121                create = rarr < p 
    122122            else: