Exemplo n.º 1
0
        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)


        netConnInfo.addNetConn(netConnName,
                               source,
                               target,
                               synList,
                               searchPattern,
                               maxMinLength,
                               connectivityConditions,
                               Float.MAX_VALUE)

        print netConnInfo.getSummary(netConnName)

        preCell = project.cellManager.getCell(project.cellGroupsInfo.getCellType(source))
        postCell = project.cellManager.getCell(project.cellGroupsInfo.getCellType(target))