Exemplo n.º 1
0
        cellMechNames = project.cellMechanismInfo.getAllCellMechanismNames()

        for syn in syns:
            if not syn in cellMechNames:
                print "Synapse mechanism %s not found in project!"%syn
                exit()
                
            synProp = SynapticProperties(syn)
            synProp.setThreshold(0)
            synProp.setFixedDelay(default_syn_delay)
            synList.add(synProp)

        searchPattern = SearchPattern.getRandomSearchPattern()
        maxMinLength = MaxMinLength()

        connectivityConditions = ConnectivityConditions()
        connectivityConditions.setGenerationDirection(ConnectivityConditions.TARGET_TO_SOURCE)
        
        connectivityConditions.setNumConnsInitiatingCellGroup(NumberGenerator(numPre))

        if "axon" in postGroup:
            connectivityConditions.getPrePostAllowedLoc().setAxonsAllowedPost(1)
        if "dend" in preGroup:
            connectivityConditions.getPrePostAllowedLoc().setDendritesAllowedPre(1)

        connectivityConditions.setAllowAutapses(0)
            
        if("Elect" in syns[0]):
            connectivityConditions.setNoRecurrent(1)