Model Simulation
Simply simulate the model using:
simulation.simulate()
Simulation results can be obtained in various ways.
Retrieve voltage trace in the cell soma:
results = simulation.trace_voltages_at_soma()
Now, two files are automatically generated in the corresponding results folder: trace graph (see below), and a pickle file containing a Python dictionary with the retrieved data.
You can retrieve and plot the soma voltage using:
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(8,5))
plt.plot(results[0]['0'][1]['t'], results[0]['0'][1]['v'], ls='-', c='r', label='Expanding stimulus',linewidth=3)
plt.legend()
plt.show()

You can also call the visualize results function:
simulation.visualize_results()
The following files will be generated:
Stimulus
Voltage traces across all sections


Last updated
Was this helpful?