Changeset 394

Show
Ignore:
Timestamp:
06/26/08 11:15:39 (5 months ago)
Author:
apdavison
Message:

Fixed a couple of bugs in neuron2: delays not getting set properly to default values if not set explicitly, tau_m incorrectly set if cm set at the same time.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/common.py

    r386 r394  
    634634def get_min_delay(): 
    635635    """Return the minimum allowed synaptic delay.""" 
    636     return 1e12 
     636    raise Exception("common.get_min_delay() must be overridden by a simulator-specific function") 
    637637 
    638638def get_max_delay(): 
    639639    """Return the maximum allowed synaptic delay.""" 
    640     return -1e12 
     640    raise Exception("common.get_max_delay() must be overridden by a simulator-specific function") 
    641641 
    642642def num_processes(): 
  • trunk/src/neuron2/__init__.py

    r387 r394  
    7373def get_min_delay(): 
    7474    return simulator.state.min_delay 
    75 #common.get_min_delay = get_min_delay 
     75common.get_min_delay = get_min_delay 
    7676 
    7777def num_processes(): 
  • trunk/src/neuron2/cells.py

    r378 r394  
    7878         
    7979        # process arguments 
    80         self.parameter_names = ['tau_m', 'cm', 'v_rest', 'v_thresh', 't_refrac', 
     80        self.parameter_names = ['cm', 'tau_m', 'v_rest', 'v_thresh', 't_refrac',   # 'cm' must come before 'tau_m' 
    8181                                'i_offset', 'v_reset', 'v_init', 'tau_e', 'tau_i'] 
    8282        if syn_type == 'conductance':