Changeset 333 for trunk/src/common.py

Show
Ignore:
Timestamp:
06/05/08 10:43:57 (5 years ago)
Author:
apdavison
Message:

Added a synapse_types attribute to all standard cell classes (see #90).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common.py

    r332 r333  
    359359class StandardCellType(StandardModelType): 
    360360    """Base class for standardized cell model classes.""" 
    361     pass 
     361 
     362    synapse_types = ('excitatory', 'inhibitory') 
    362363 
    363364 
     
    552553        'duration' : 1e6      # Duration of spike sequence (ms) 
    553554    }   
    554  
     555    synapse_types = () 
    555556 
    556557class SpikeSourceInhGamma(StandardCellType): 
     
    570571        'duration' : 1e6                 # Duration of spike sequence (ms) 
    571572    }   
    572  
     573    synapse_types = () 
    573574 
    574575class SpikeSourceArray(StandardCellType): 
     
    576577     
    577578    default_parameters = { 'spike_times' : [] } # list or numpy array containing spike times in milliseconds. 
     579    synapse_types = ()     
    578580            
    579581    def __init__(self, parameters):