Last modified by adavison on 2022/10/04 13:55

From version 11.5
edited by adavison
on 2021/09/30 14:20
Change comment: There is no comment for this version
To version 13.1
edited by adavison
on 2021/09/30 14:24
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -334,22 +334,28 @@
334 334  population2.set(i_offset=0)
335 335  population1.record("v")
336 336  population2.record("v")(%%)
337 -(% style="color:#e74c3c" %)connection_algorithm = sim.FixedProbabilityConnector(p=0.5)
337 +(% style="color:#000000" %)connection_algorithm = sim.FixedProbabilityConnector(p=0.5)
338 338  synapse_type = sim.StaticSynapse(weight=0.5, delay=0.5)
339 339  connections = sim.Projection(population1, population2, connection_algorithm, synapse_type)(%%)
340 340  (% style="color:#000000" %)sim.run(100.0)(%%)
341 -(% style="color:#000000" %)data_v = population1.get_data().segments[0].filter(name='v')[0]
342 -Figure(
341 +(% style="color:#e74c3c" %)data1_v(% style="color:#000000" %) = population1.get_data().segments[0].filter(name='v')[0](%%)
342 +(% style="color:#e74c3c" %)data2_v = population2.get_data().segments[0].filter(name='v')[0](%%)
343 +(% style="color:#000000" %)Figure(
343 343   Panel(
344 - data_v[:, 0:5],
345 - xticks=True, xlabel="Time (ms)",
346 - yticks=True, ylabel="Membrane potential (mV)"
345 + (% style="color:#e74c3c" %)data1_v(% style="color:#000000" %)[:, 0:5],
346 + xticks=True, (% style="color:#e74c3c" %)--xlabel="Time (ms)",--(%%)
347 +(% style="color:#000000" %) yticks=True, ylabel="Membrane potential (mV)"
347 347   ),
348 - title="Response of first five neurons with heterogeneous parameters",
349 + (% style="color:#e74c3c" %)Panel(
350 + data2_v[:, 0:5],
351 + xticks=True, xlabel="Time (ms)",
352 + yticks=True"
353 + ),(%%)
354 +(% style="color:#000000" %) title="Response of (% style="color:#e74c3c" %)simple network(% style="color:#000000" %)",
349 349   annotations="Simulated with NEST"
350 350  ).show()
351 351  
352 -Run script in terminal, show figure
358 +**Run script in terminal, show figure**
353 353  )))
354 354  
355 355  (% class="wikigeneratedid" id="HSummary28Inthistutorial2CyouhavelearnedtodoX202629" %)