Show
Ignore:
Timestamp:
08/10/10 17:18:06 (22 months ago)
Author:
thesamovar
Message:

** Brian 1.2.2dev-2010-08-10 **

Fixed problems with STDP separating equations for triplet rule
Fixed sparse matrix problem with scipy 0.8.0

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/brian/experimental/c_stdp.py

    r2105 r2116  
    5959        vars_post = [var for var in vars if var in modified_variables(post)] 
    6060 
    61         # additional dependencies on the set of equations are induced by the 
    62         # interactions in pre and post code 
    63         additional_deps = pre.split('\n')+post.split('\n') 
     61        # additional dependencies are used to ensure that if there are multiple 
     62        # pre/post separated equations they are grouped together as one 
     63        additional_deps = ['__pre_deps='+'+'.join(vars_pre), 
     64                           '__post_deps='+'+'.join(vars_post)] 
    6465        separated_equations = separate_equations(eqs_obj, additional_deps) 
    6566        if not len(separated_equations) == 2: 
     67            print separated_equations 
    6668            raise ValueError('Equations should separate into pre and postsynaptic variables.') 
    6769        sep_pre, sep_post = separated_equations