Okay I was able to create a simplified model with a similar error to the original
My current brian2 version is 2.7.1, brian2cuda is 1.0a6, gcc is 13.3, g++ is 13.3, and nvcc is 11.6
An error occurred when preparing an object. (See above for original error message and traceback.)
The synapse code
from brian2 import *
from create_Neurons import _create_Neurons, getNeuronParams
import numpy as np
pop_names = ["Pyramidal","AxoAxonic","Basket","BasketCCK","Bistratified","Ivy","MFAOrden","QuadDLM","Granule"]
num_group = _create_Neurons()
neuron_params = getNeuronParams()
synaptic_params = {
(num_group[0], num_group[0]) : {"wl" : 0.0, "wm" : 0.55, "wu" : 1.55, "g": 0.3, "ts": 10.22 * ms, "tau_x" : 318.51 * ms, "tau_u": 21.45 * ms, "U": 0.28, "p" : 0.025, "delayer" : 2, "tau_uInv" : (1000/21.45) * Hz, "tau_xInv" : (1000/318.51) * Hz, "tsInv" : (1000/10.22) * Hz},
(num_group[0], num_group[1]) : {"wl" : 0.0, "wm" : 0.7, "wu" : 1.7, "g": 0.65, "ts" : 4.92 * ms, "tau_x": 630.73 * ms, "tau_u": 26.26 * ms, "U": 0.26, "p" : 0.015, "delayer" : 2, "tau_uInv" : (1000/26.26) * Hz, "tau_xInv" : (1000/630.73) * Hz, "tsInv" : (1000/4.92) * Hz},
(num_group[0], num_group[2]) : {"wl" : 0.0, "wm" : 1.45, "wu" : 2.45, "g": 1.7, "ts": 3.97 * ms, "tau_x": 691.42 * ms, "tau_u": 21.16 * ms, "U": 0.12, "p" : 0.020, "delayer" : 2, "tau_uInv" : (1000/21.16) * Hz, "tau_xInv" : (1000/691.42) * Hz, "tsInv" : (1000/3.97) * Hz},
(num_group[0], num_group[3]) : {"wl" : 0.0, "wm" : 1.0, "wu" : 2.0, "g" : 0.85, "ts" : 4.29 * ms, "tau_x" : 530.40 * ms, "tau_u" : 22.45 * ms, "U" : 0.2, "p" : 0.017, "delayer" : 2, "tau_uInv" : (1000/22.45) * Hz, "tau_xInv" : (1000/530.40) * Hz, "tsInv" : (1000/4.29) * Hz},
(num_group[0], num_group[4]) : {"wl" : 0.0, "wm" : 0.7, "wu" : 1.7, "g" : 0.62, "ts" : 5.37 * ms, "tau_x" : 569.15 * ms, "tau_u" : 23.85 * ms, "U" : 0.26, "p" : 0.016, "delayer" : 2, "tau_uInv" : (1000/23.85) * Hz, "tau_xInv" : (1000/569.15) * Hz, "tsInv" : (1000/5.37) * Hz},
(num_group[0], num_group[5]) : {"wl" : 0.0, "wm" : 1.35, "wu" : 2.35, "g" : 1.77, "ts" : 5.67 * ms, "tau_x" : 552.27 * ms, "tau_u" : 26.73 * ms, "U" : 0.12, "p" : 0.025, "delayer" : 2, "tau_uInv" : (1000/26.73) * Hz, "tau_xInv" : (1000/552.27) * Hz, "tsInv" : (1000/5.67) * Hz},
(num_group[0], num_group[6]) : {"wl" : 0.0, "wm" : 1.25, "wu" : 2.25, "g" : 1.10, "ts" : 5.95 * ms, "tau_x" : 444.99 * ms, "tau_u" : 29.01 * ms, "U" : 0.15, "p" : 0.021, "delayer" : 2, "tau_uInv" : (1000/29.01) * Hz, "tau_xInv" : (1000/444.99) * Hz, "tsInv" : (1000/5.95) * Hz},
(num_group[0], num_group[7]) : {"wl" : 0.0, "wm" : 1.25, "wu" : 2.25, "g" : 1.09, "ts" : 5.82 * ms, "tau_x" : 453.29 * ms, "tau_u" : 27.16 * ms, "U" : 0.15, "p" : 0.013, "delayer" : 2, "tau_uInv" : (1000/27.16) * Hz, "tau_xInv" : (1000/453.29) * Hz, "tsInv" : (1000/5.82) * Hz},
(num_group[1], num_group[0]) : {"wl" : 0.0,"wm" : 1.45, "wu" : 2.45, "g" : 2.71, "ts" : 7.62 * ms, "tau_x" : 361.03 * ms, "tau_u" : 12.93 * ms, "U" : 0.13, "p" : 0.15, "delayer" : 1, "tau_uInv" : (1000/12.93) * Hz, "tau_xInv" : (1000/361.03) * Hz, "tsInv" : (1000/7.62) * Hz},
(num_group[2], num_group[0]) : {"wl" : 0.0, "wm" : 1.45, "wu" : 2.45, "g" : 2.28, "ts" : 7.64 * ms, "tau_x" : 384.34 * ms, "tau_u" : 16.74 * ms, "U" : 0.13, "p" : 0.15, "delayer" : 1, "tau_uInv" : (1000/16.74) * Hz, "tau_xInv" : (1000/384.34) * Hz, "tsInv" : (1000/7.64) * Hz},
(num_group[2], num_group[1]) : {"wl" : 0.0, "wm" : 1.3, "wu" : 2.3, "g" : 2.63, "ts" : 3.80 * ms, "tau_x" : 725.03 * ms, "tau_u" : 23.21 * ms, "U" : 0.19, "p" : 0.025, "delayer" : 1, "tau_uInv" : (1000/23.21) * Hz, "tau_xInv" : (1000/752.03) * Hz, "tsInv" : (1000/3.80) * Hz},
(num_group[2], num_group[2]) : {"wl" : 0.0, "wm" : 0.55, "wu" : 1.55, "g" : 1.80, "ts" : 3.01 * ms, "tau_x" : 689.51 * ms, "tau_u" : 11.19 * ms, "U" : 0.39, "p" : 0.005, "delayer" : 1, "tau_uInv" : (1000/11.19) * Hz, "tau_xInv" : (1000/689.51) * Hz, "tsInv" : (1000/3.01) * Hz},
(num_group[2], num_group[3]) : {"wl" : 0.0, "wm" : 1.0, "wu" : 2.0, "g" : 1.69, "ts" : 4.21 * ms, "tau_x" : 636.76 * ms, "tau_u" : 16.72 * ms, "U" : 0.24, "p" : 0.005, "delayer" : 1, "tau_uInv" : (1000/16.72) * Hz, "tau_xInv" : (1000/636.76) * Hz, "tsInv" : (1000/4.21) * Hz},
(num_group[2], num_group[4]) : {"wl" : 0.0, "wm" : 1.3, "wu" : 2.3, "g" : 2.30, "ts" : 4.72 * ms, "tau_x" : 680.33 * ms, "tau_u" : 16.72 * ms, "U" : 0.18, "p" : 0.025, "delayer" : 1, "tau_uInv" : (1000/16.72) * Hz, "tau_xInv" : (1000/680.33) * Hz, "tsInv" : (1000/4.72) * Hz},
(num_group[2], num_group[6]) : {"wl" : 0.0, "wm" : 0.75, "wu" : 1.75, "g" : 1.36, "ts" : 5.23 * ms, "tau_x" : 581.94 * ms, "tau_u" : 19.60 * ms, "U" : 0.30, "p" : 0.005, "delayer" : 1, "tau_uInv" : (1000/19.60) * Hz, "tau_xInv" : (1000/581.94) * Hz, "tsInv" : (1000/5.23) * Hz},
(num_group[2], num_group[7]) : {"wl" : 0.0, "wm" : 0.75, "wu" : 1.75, "g" : 1.31, "ts" : 5.16 * ms, "tau_x" : 589.20 * ms, "tau_u" : 19.31 * ms, "U" : 0.31, "p" : 0.005, "delayer" : 1, "tau_uInv" : (1000/19.31) * Hz, "tau_xInv" : (1000/589.20) * Hz, "tsInv" : (1000/5.16) * Hz},
(num_group[3], num_group[0]) : {"wl" : 0.0, "wm" : 0.65, "wu" : 1.65, "g" : 1.89, "ts" : 9.10 * ms, "tau_x" : 376.67 * ms, "tau_u" : 13.76 * ms, "U" : 0.08, "p" : 0.15, "delayer" : 1, "tau_uInv" : (1000/13.76) * Hz, "tau_xInv" : (1000/376.67) * Hz, "tsInv" : (1000/9.10) * Hz},
(num_group[3], num_group[1]) : {"wl" : 0.0, "wm" : 1.3, "wu" : 2.3, "g" : 1.94, "ts" : 5.44 * ms, "tau_x" : 477.43 * ms, "tau_u" : 18.50 * ms, "U" : 0.12, "p" : 0.025, "delayer" : 1, "tau_uInv" : (1000/18.50) * Hz, "tau_xInv" : (1000/477.73) * Hz, "tsInv" : (1000/5.44) * Hz},
(num_group[3], num_group[2]) : {"wl" : 0.0, "wm" : 0.55, "wu" : 1.55, "g" : 0.96, "ts" : 4.69 * ms, "tau_x" : 505.12 * ms, "tau_u" : 14.86 * ms, "U" : 0.28, "p" : 0.005, "delayer" : 1, "tau_uInv" : (1000/14.86) * Hz, "tau_xInv" : (1000/505.12) * Hz, "tsInv" : (1000/4.69) * Hz},
(num_group[3], num_group[3]) : {"wl" : 0.0, "wm" : 1.0, "wu" : 2.0, "g" : 0.97, "ts" : 4.89 * ms, "tau_x" : 283.28 * ms, "tau_u" : 23.38 * ms, "U" : 0.12, "p" : 0.005, "delayer" : 1, "tau_uInv" : (1000/23.38) * Hz, "tau_xInv" : (1000/283.38) * Hz, "tsInv" : (1000/4.89) * Hz},
(num_group[3], num_group[4]) : {"wl" : 0.0, "wm" : 1.3, "wu" : 2.3, "g" : 1.78, "ts" : 5.97 * ms, "tau_x" : 478.31 * ms, "tau_u" : 15.25 * ms, "U" : 0.13, "p" : 0.025, "delayer" : 1, "tau_uInv" : (1000/15.25) * Hz, "tau_xInv" : (1000/478.31) * Hz, "tsInv" : (1000/5.97) * Hz},
(num_group[3], num_group[6]) : {"wl" : 0.0, "wm" : 0.75, "wu" : 1.75, "g" : 1.02, "ts" : 6.54 * ms, "tau_x" : 421.42 * ms, "tau_u" : 17.84 * ms, "U" : 0.21, "p" : 0.005, "delayer" : 1, "tau_uInv" : (1000/17.84) * Hz, "tau_xInv" : (1000/421.42) * Hz, "tsInv" : (1000/6.54) * Hz},
(num_group[3], num_group[7]) : {"wl" : 0.0, "wm" : 0.75, "wu" : 1.75, "g" : 1.00, "ts" : 6.48 * ms, "tau_x" : 398.15 * ms, "tau_u" : 17.34 * ms, "U" : 0.22, "p" : 0.025, "delayer" : 1, "tau_uInv" : (1000/17.34) * Hz, "tau_xInv" : (1000/389.15) * Hz, "tsInv" : (1000/6.48) * Hz},
(num_group[4], num_group[0]) : {"wl" : 0.0, "wm" : 1.45, "wu" : 2.45, "g" : 2.08, "ts" : 7.49 * ms, "tau_x" : 481.15 * ms, "tau_u" : 16.61 * ms, "U" : 0.12, "p" : 0.028, "delayer" : 1, "tau_uInv" : (1000/16.61) * Hz, "tau_xInv" : (1000/481.15) * Hz, "tsInv" : (1000/7.49) * Hz},
(num_group[4], num_group[1]) : {"wl" : 0.0, "wm" : 1.3 , "wu" : 2.3, "g" : 2.15, "ts" : 4.57 * ms, "tau_x" : 686.28 * ms, "tau_u" : 19.16 * ms, "U" : 0.17, "p" : 0.007, "delayer" : 1, "tau_uInv" : (1000/19.16) * Hz, "tau_xInv" : (1000/686.28) * Hz, "tsInv" : (1000/4.57) * Hz},
(num_group[4], num_group[2]) : {"wl" : 0.0 , "wm" : 0.55 , "wu" : 1.55, "g" : 1.10, "ts" : 3.86 * ms, "tau_x" : 695.21 * ms, "tau_u" : 14.60 * ms, "U" : 0.37, "p" : 0.009, "delayer" : 1, "tau_uInv" : (1000/14.60) * Hz, "tau_xInv" : (1000/695.21) * Hz, "tsInv" : (1000/3.86) * Hz},
(num_group[4], num_group[3]) : {"wl" : 0.0 , "wm" : 1.0 , "wu" : 2.0, "g" : 1.44, "ts" : 4.58 * ms, "tau_x" : 592.19 * ms, "tau_u" : 17.69 * ms, "U" : 0.22, "p" : 0.004, "delayer" : 1, "tau_uInv" : (1000/17.69) * Hz, "tau_xInv" : (1000/592.19) * Hz, "tsInv" : (1000/4.58) * Hz},
(num_group[4], num_group[4]) : {"wl" : 0.0 , "wm" : 1.3 , "wu" : 2.3, "g" : 2.01, "ts" : 4.58 * ms, "tau_x" : 775.04 * ms, "tau_u" : 13.60 * ms, "U" : 0.17, "p" : 0.033, "delayer" : 1, "tau_uInv" : (1000/13.60) * Hz, "tau_xInv" : (1000/775.04) * Hz, "tsInv" : (1000/4.58) * Hz},
(num_group[4], num_group[5]) : {"wl" : 0.0 , "wm" : 0.65 , "wu" : 1.65, "g" : 1.34, "ts" : 5.33 * ms, "tau_x" : 649.83 * ms, "tau_u" : 18.17 * ms, "U" : 0.30, "p" : 0.004, "delayer" : 1, "tau_uInv" : (1000/18.17) * Hz, "tau_xInv" : (1000/649.83) * Hz, "tsInv" : (1000/5.33) * Hz},
(num_group[4], num_group[6]) : {"wl" : 0.0 , "wm" : 1.0 , "wu" : 2.0, "g" : 1.57, "ts" : 5.54 * ms, "tau_x" : 605.25 * ms, "tau_u" : 18.30 * ms, "U" : 0.29, "p" : 0.009, "delayer" : 1, "tau_uInv" : (1000/18.30) * Hz, "tau_xInv" : (1000/605.25) * Hz, "tsInv" : (1000/5.54) * Hz},
(num_group[4], num_group[7]) : {"wl" : 0.0 , "wm" : 0.75 , "wu" : 1.75, "g" : 1.12, "ts" : 5.53 * ms, "tau_x" : 594.33 * ms, "tau_u" : 17.89 * ms, "U" : 0.30, "p" : 0.008, "delayer" : 1, "tau_uInv" : (1000/17.89) * Hz, "tau_xInv" : (1000/594.33) * Hz, "tsInv" : (1000/5.53) * Hz},
(num_group[5], num_group[0]) : {"wl" : 0.0 , "wm" : 1.45 , "wu" : 2.45, "g" : 2.23, "ts" : 9.01 * ms, "tau_x" : 439.50 * ms, "tau_u" : 23.01 * ms, "U" : 0.12, "p" : 0.072, "delayer" : 1, "tau_uInv" : (1000/23.01) * Hz, "tau_xInv" : (1000/439.50) * Hz, "tsInv" : (1000/9.01) * Hz},
(num_group[5], num_group[1]) : {"wl" : 0.0 , "wm" : 1.3 , "wu" : 2.3, "g" : 2.29, "ts" : 5.67 * ms, "tau_x" : 651.64 * ms, "tau_u" : 25.51 * ms, "U" : 0.17, "p" : 0.004, "delayer" : 1, "tau_uInv" : (1000/25.51) * Hz, "tau_xInv" : (1000/651.64) * Hz, "tsInv" : (1000/5.67) * Hz},
(num_group[5], num_group[2]) : {"wl" : 0.0 , "wm" : 0.55 , "wu" : 1.55, "g" : 1.16, "ts" : 4.75 * ms, "tau_x" : 665.16 * ms, "tau_u" : 19.12 * ms, "U" : 0.37, "p" : 0.016, "delayer" : 1, "tau_uInv" : (1000/19.12) * Hz, "tau_xInv" : (1000/665.16) * Hz, "tsInv" : (1000/4.75) * Hz},
(num_group[5], num_group[3]) : {"wl" : 0.0 , "wm" : 1.0 , "wu" : 2.0, "g" : 1.54, "ts" : 5.40 * ms, "tau_x" : 614.01 * ms, "tau_u" : 20.98 * ms, "U" : 0.23, "p" : 0.011, "delayer" : 1, "tau_uInv" : (1000/20.98) * Hz, "tau_xInv" : (1000/614.01) * Hz, "tsInv" : (1000/5.40) * Hz},
(num_group[5], num_group[4]) : {"wl" : 0.0 , "wm" : 1.3 , "wu" : 2.3, "g" : 2.16, "ts" : 6.24 * ms, "tau_x" : 660.48 * ms, "tau_u" : 22.69 * ms, "U" : 0.17, "p" : 0.017, "delayer" : 1, "tau_uInv" : (1000/22.69) * Hz, "tau_xInv" : (1000/660.48) * Hz, "tsInv" : (1000/6.24) * Hz},
(num_group[5], num_group[5]) : {"wl" : 0.0 , "wm" : 0.65 , "wu" : 1.65, "g" : 1.34, "ts" : 5.51 * ms, "tau_x" : 675.54 * ms, "tau_u" : 17.72 * ms, "U" : 0.31, "p" : 0.004, "delayer" : 1, "tau_uInv" : (1000/17.72) * Hz, "tau_xInv" : (1000/675.54) * Hz, "tsInv" : (1000/5.51) * Hz},
(num_group[5], num_group[6]) : {"wl" : 0.0 , "wm" : 0.75 , "wu" : 1.75, "g" : 1.27, "ts" : 6.96 * ms, "tau_x" : 578.90 * ms, "tau_u" : 28.45 * ms, "U" : 0.30, "p" : 0.017, "delayer" : 1, "tau_uInv" : (1000/28.45) * Hz, "tau_xInv" : (1000/578.90) * Hz, "tsInv" : (1000/6.96) * Hz},
(num_group[5], num_group[7]) : {"wl" : 0.0 , "wm" : 0.75 , "wu" : 1.75, "g" : 1.18, "ts" : 6.89 * ms, "tau_x" : 563.47 * ms, "tau_u" : 26.15 * ms, "U" : 0.30, "p" : 0.002, "delayer" : 1, "tau_uInv" : (1000/26.15) * Hz, "tau_xInv" : (1000/563.47) * Hz, "tsInv" : (1000/6.89) * Hz},
(num_group[6], num_group[0]) : {"wl" : 0.0 , "wm" : 1.45 , "wu" : 2.45, "g" : 1.97, "ts" : 7.15 * ms, "tau_x" : 496.05 * ms, "tau_u" : 20.62 * ms, "U" : 0.12, "p" : 0.042, "delayer" : 1, "tau_uInv" : (1000/20.62) * Hz, "tau_xInv" : (1000/496.05) * Hz, "tsInv" : (1000/7.15) * Hz},
(num_group[6], num_group[1]) : {"wl" : 0.0 , "wm" : 1.3 , "wu" : 2.3, "g" : 2.12, "ts" : 4.55 * ms, "tau_x" : 762.60 * ms, "tau_u" : 21.45 * ms, "U" : 0.16, "p" : 0.004, "delayer" : 1, "tau_uInv" : (1000/21.45) * Hz, "tau_xInv" : (1000/762.60) * Hz, "tsInv" : (1000/4.55) * Hz},
(num_group[6], num_group[2]) : {"wl" : 0.0 , "wm" : 0.55 , "wu" : 1.55, "g" : 1.08, "ts" : 3.90 * ms, "tau_x" : 759.12 * ms, "tau_u" : 15.70 * ms, "U" : 0.36, "p" : 0.007, "delayer" : 1, "tau_uInv" : (1000/15.70) * Hz, "tau_xInv" : (1000/759.12) * Hz, "tsInv" : (1000/3.90) * Hz},
(num_group[6], num_group[3]) : {"wl" : 0.0 , "wm" : 1.0 , "wu" : 2.0, "g" : 1.42, "ts" : 4.32 * ms, "tau_x" : 693.92 * ms, "tau_u" : 17.08 * ms, "U" : 0.22, "p" : 0.005, "delayer" : 1, "tau_uInv" : (1000/17.08) * Hz, "tau_xInv" : (1000/693.92) * Hz, "tsInv" : (1000/4.32) * Hz},
(num_group[6], num_group[4]) : {"wl" : 0.0 , "wm" : 1.3 , "wu" : 2.3, "g" : 2.00, "ts" : 4.96 * ms, "tau_x" : 776.57 * ms, "tau_u" : 17.27 * ms, "U" : 0.17, "p" : 0.005, "delayer" : 1, "tau_uInv" : (1000/17.27) * Hz, "tau_xInv" : (1000/776.57) * Hz, "tsInv" : (1000/4.96) * Hz},
(num_group[6], num_group[5]) : {"wl" : 0.0 , "wm" : 0.65 , "wu" : 1.65, "g" : 1.35, "ts" : 5.39 * ms, "tau_x" : 712.27 * ms, "tau_u" : 21.22 * ms, "U" : 0.30, "p" : 0.003, "delayer" : 1, "tau_uInv" : (1000/21.22) * Hz, "tau_xInv" : (1000/712.27) * Hz, "tsInv" : (1000/5.39) * Hz},
(num_group[6], num_group[6]) : {"wl" : 0.0 , "wm" : 0.75 , "wu" : 1.75, "g" : 1.16, "ts" : 5.53 * ms, "tau_x" : 642.10 * ms, "tau_u" : 22.52 * ms, "U" : 0.29, "p" : 0.002, "delayer" : 1, "tau_uInv" : (1000/22.52) * Hz, "tau_xInv" : (1000/642.10) * Hz, "tsInv" : (1000/5.53) * Hz},
(num_group[6], num_group[7]) : {"wl" : 0.0 , "wm" : 0.75 , "wu" : 1.75, "g" : 1.10, "ts" : 5.52 * ms, "tau_x" : 637.95 * ms, "tau_u" : 21.01 * ms, "U" : 0.29, "p" : 0.004, "delayer" : 1, "tau_uInv" : (1000/21.01) * Hz, "tau_xInv" : (1000/637.956) * Hz, "tsInv" : (1000/5.52) * Hz},
(num_group[7], num_group[0]) : {"wl" : 0.0 , "wm" : 1.45 , "wu" : 2.45, "g" : 1.72, "ts" : 9.11 * ms, "tau_x" : 382.14 * ms, "tau_u" : 24.79 * ms, "U" : 0.11, "p" : 0.119, "delayer" : 1, "tau_uInv" : (1000/24.79) * Hz, "tau_xInv" : (1000/382.14) * Hz, "tsInv" : (1000/9.11) * Hz},
(num_group[7], num_group[1]) : {"wl" : 0.0 , "wm" : 1.3 , "wu" : 2.3, "g" : 1.91, "ts" : 5.17 * ms, "tau_x" : 635.01 * ms, "tau_u" : 22.34 * ms, "U" : 0.15, "p" : 0.005, "delayer" : 1, "tau_uInv" : (1000/22.34) * Hz, "tau_xInv" : (1000/635.01) * Hz, "tsInv" : (1000/5.17) * Hz},
(num_group[7], num_group[2]) : {"wl" : 0.0 , "wm" : 0.55 , "wu" : 1.55, "g" : 1.00, "ts" : 4.29 * ms, "tau_x" : 663.25 * ms, "tau_u" : 16.42 * ms, "U" : 0.34, "p" : 0.067, "delayer" : 1, "tau_uInv" : (1000/16.42) * Hz, "tau_xInv" : (1000/663.25) * Hz, "tsInv" : (1000/4.29) * Hz},
(num_group[7], num_group[3]) : {"wl" : 0.0 , "wm" : 1.0 , "wu" : 2.0, "g" : 1.31, "ts" : 4.83 * ms, "tau_x" : 596.50 * ms, "tau_u" : 17.78 * ms, "U" : 0.21, "p" : 0.050, "delayer" : 1, "tau_uInv" : (1000/17.78) * Hz, "tau_xInv" : (1000/596.50) * Hz, "tsInv" : (1000/4.83) * Hz},
(num_group[8], num_group[0]) : {"wl" : 0.0, "wm" : 1.0 , "wu" : 2.0, "g" : 1.83, "ts" : 7.43 * ms, "tau_x" : 347.44 * ms, "tau_u" : 42.00 * ms, "U" : 0.16, "p" : 0.002, "delayer" : 10, "tau_uInv" : (1000/42) * Hz, "tau_xInv" : (1000/347.44) * Hz, "tsInv" : (1000/7.43) * Hz},
(num_group[8], num_group[1]) : {"wl" : 0.0 , "wm" : (1/0.16) , "wu" : (1 + (0.16)), "g" : 1.94, "ts" : 4.13 * ms, "tau_x" : 702.40 * ms, "tau_u" : 36.83 * ms, "U" : 0.17, "p" : 0.001, "delayer" : 10, "tau_uInv" : (1000/36.83) * Hz, "tau_xInv" : (1000/702.40) * Hz, "tsInv" : (1000/4.13) * Hz},
(num_group[8], num_group[2]) : {"wl" : 0.0 , "wm" : (1/0.17) , "wu" : (1 + (0.17)), "g" : 1.50, "ts" : 3.58 * ms, "tau_x" : 744.66 * ms, "tau_u" : 30.29 * ms, "U" : 0.19, "p" : 0.001, "delayer" : 10, "tau_uInv" : (1000/30.29) * Hz, "tau_xInv" : (1000/744.66) * Hz, "tsInv" : (1000/3.58) * Hz},
(num_group[8], num_group[3]) : {"wl" : 0.0 , "wm" : (1/0.19) , "wu" : (1 + (0.19)), "g" : 1.57, "ts" : 3.46 * ms, "tau_x" : 658.70 * ms, "tau_u" : 25.92 * ms, "U" : 0.21, "p" : 0.001, "delayer" : 10, "tau_uInv" : (1000/25.92) * Hz, "tau_xInv" : (1000/658.70) * Hz, "tsInv" : (1000/3.46) * Hz},
(num_group[8], num_group[4]) : {"wl" : 0.0 , "wm" : (1/0.21) , "wu" : (1 + (0.21)), "g" : 1.91, "ts" : 4.39 * ms, "tau_x" : 594.72 * ms, "tau_u" : 38.34 * ms, "U" : 0.19, "p" : 0.001, "delayer" : 10, "tau_uInv" : (1000/38.34) * Hz, "tau_xInv" : (1000/594.72) * Hz, "tsInv" : (1000/4.39) * Hz},
(num_group[8], num_group[5]) : {"wl" : 0.0 , "wm" : (1/0.19) , "wu" : (1 + (0.19)), "g" : 2.27, "ts" : 3.75 * ms, "tau_x" : 764.65 * ms, "tau_u" : 21.48 * ms, "U" : 0.18, "p" : 0.001, "delayer" : 10, "tau_uInv" : (1000/21.48) * Hz, "tau_xInv" : (1000/764.55) * Hz, "tsInv" : (1000/3.75) * Hz},
(num_group[8], num_group[6]) : {"wl" : 0.0 , "wm" : (1/0.18) , "wu" : (1 + (0.18)), "g" : 1.97, "ts" : 4.87 * ms, "tau_x" : 435.65 * ms, "tau_u" : 48.65 * ms, "U" : 0.19, "p" : 0.001, "delayer" : 10, "tau_uInv" : (1000/48.65) * Hz, "tau_xInv" : (1000/435.65) * Hz, "tsInv" : (1000/4.87) * Hz},
(num_group[8], num_group[7]) : {"wl" : 0.0 , "wm" : (1/0.19) , "wu" : (1 + (0.19)), "g" : 1.88, "ts" : 4.96 * ms, "tau_x" : 464.59 * ms, "tau_u" : 43.06 * ms, "U" : 0.18, "p" : 0.001, "delayer" : 10, "tau_uInv" : (1000/43.06) * Hz, "tau_xInv" : (1000/464.59) * Hz, "tsInv" : (1000/4.96) * Hz}
}
def _get_Synaptic_Params():
return synaptic_params
uxhwModel = '''
du_syn/dt = -u_syn/tau_u: 1 (clock-driven)
dx/dt = (1-x)/tau_x : 1 (clock-driven)
w : 1 (constant)
u_plus : 1 (constant)
dIsyn/dt = -Isyn/ts : 1 (clock-driven)
'''
def group_synapse():
num_synapse = []
for (ng_pre, ng_post), ng_params in synaptic_params.items():
#Isyn_Pyramidal
# if ng_pre.name == 'Basket' or ng_pre.name == 'BasketCCK' or ng_pre.name == 'Bistratified' or ng_pre.name == 'Ivy' or ng_pre.name == 'QuadDLM':
updater = f'Isyn_{ng_pre.name}_post = Isyn * pA : amp (summed)'
model = uxhwModel + updater
y = (np.random.rand() * (ng_params.get('delayer') - 1) + 1)
s = Synapses(ng_pre, ng_post, model = model, method = 'euler',
on_pre = {'pre_1' : 'u_syn += U * (1 - u_syn)',
'pre_2' : 'u_plus = u_syn',
'pre_3' : 'Isyn += (1/U) * u_plus * x',
'pre_4' : 'x -= u_plus * x'}, on_event ={'pre_1' : 'spike', 'pre_2' : 'spike', 'pre_3' : 'spike', 'pre_4' : 'spike'},
delay = {'pre_1' : y * ms,
'pre_2' : y * ms,
'pre_3' : y * ms,
'pre_4' : y * ms,
},
name = f"{ng_pre.name}_{ng_post.name}_synapse", namespace = ng_params)
s.connect(condition = 'i!=j', p = ng_params.get('p'))
s.w = ng_params.get('p')
s.x = 1
s.u_syn = 0
num_synapse.append(s)
return num_synapse, num_group
def create_synapse():
num_group = _create_Neurons()
num_Synapse, num_group = group_synapse()
return num_Synapse, num_group
Let me know if there is anything else that I can post to make it easier.