예제 #1
0
파일: run.py 프로젝트: baubie/DTNSpecies
            key = [a, d]
            ns.save_current(
                net,
                "IC-soma",
                ["AMPA", "NMDA", "GABAa"],
                key,
                base_filename + "_current_s_" + str(d) + "_a_" + str(a) + ".dat",
            )


# Plot the voltage traces
if ShowVoltage:
    count = 0
    for d in stims:
        count += 1
        ns.subplot(len(stims), 1, count)
        for a in param:
            key = [a, d]
            ns.plot_voltage(net, "IC-soma", key)
            ns.plot_voltage(net, "MSO_ON-soma", key)
            ns.plot_voltage(net, "MSO_OFF-soma", key)
    ns.legend()
    ns.show()

# Plot the condutance
if ShowConductance:
    count = 0
    for d in stims:
        count += 1
        ns.subplot(len(stims), 1, count)
        for a in param:
예제 #2
0
파일: run2.py 프로젝트: baubie/DTNSpecies
                                                                         current=False, 
                                                                         voltage=True)

if True:
    ns.plot_mean_spikes(networks["C"], "IC-soma", "c_soma_size.dat")
    ns.plot_mean_spikes(networks["AC"], "IC-soma", "ac_soma_size.dat")
    ns.show()  # Comment out to just save the results to file

# Plot the results
if False:
    count = 0
    for a in param:
        for d in stims:
            count += 1
            key = [a,d]
            ns.subplot(len(param),len(stims),count)
            ns.plot_voltage(networks["C"], "IC-soma", key)
    progress.update(count, len(stims))
    ns.show()

if False:
    count = 0
    for a in param:
        for d in stims:
            count += 1
            key = [a,d]
            ns.subplot(len(param),len(stims),count)
            ns.plot_conductance(networks["C"], "IC-dendE", "NMDA", key)
            ns.plot_conductance(networks["C"], "IC-dendE", "AMPA", key)
            ns.plot_conductance(networks["C"], "IC-dendE", "GABAa", key)
    progress.update(count, len(stims))