👁️
Retinal Stimulation Modeling Environment
  • Retinal Stimulation Modeling Environment (RSME)
  • Preliminaries
    • Python
    • NEURON
    • Systems Biology Markup Language
    • RSME and Model initialization
  • Model specification
    • Meta-parameters
    • Morphology Description
    • Network Description
    • Visual Stimulation
    • Biophysical Description
  • Visual Stimulation
  • Single SAC model
    • Model Initialization
    • Model Visualization
    • Model Simulation
  • SAC plexus model
    • Before we begin
    • Model Initialization and Visualization
    • Model Simulation
  • SAC-DSGC network
    • Model initialization and visualization
    • Model Simulation
  • Logger
Powered by GitBook
On this page

Was this helpful?

  1. Single SAC model

Model Simulation

PreviousModel VisualizationNextSAC plexus model

Last updated 3 years ago

Was this helpful?

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

Part of the generated stimulus
Part of the traced voltage across the model