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/neuron/__init__.py

    r712 r713  
    99from pyNN.random import * 
    1010from pyNN.neuron import simulator 
    11 from pyNN import common, recording, space, __doc__ 
     11from pyNN import common, recording, space, standardmodels, __doc__ 
    1212common.simulator = simulator 
    1313recording.simulator = simulator 
     
    3030def list_standard_models(): 
    3131    """Return a list of all the StandardCellType classes available for this simulator.""" 
    32     return [obj for obj in globals().values() if isinstance(obj, type) and issubclass(obj, common.StandardCellType)] 
     32    return [obj for obj in globals().values() if isinstance(obj, type) and issubclass(obj, standardmodels.StandardCellType)] 
    3333 
    3434# ============================================================================== 
     
    121121          e.g., (10,10) will create a two-dimensional population of size 10x10. 
    122122        cellclass should either be a standardized cell class (a class inheriting 
    123         from common.StandardCellType) or a string giving the name of the 
     123        from standardmodels.StandardCellType) or a string giving the name of the 
    124124        simulator-specific model that makes up the population. 
    125125        cellparams should be a dict which is passed to the neuron model