> For the complete documentation index, see [llms.txt](https://elishai.gitbook.io/retinal-stimulation-modeling-environment/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elishai.gitbook.io/retinal-stimulation-modeling-environment/single-sac-model/model-initialization.md).

# Model Initialization

You can download the XML specifications for this model here:

{% file src="/files/KouY1b0IMrqUw40ivzL4" %}

Following library imports as was described earlier in the preliminaries,  a model is initiated using:

```
simulation_parameters = SimulationParameters(
    "simulation_parameters/single_SAC_meta.xml",
    note = 'single_SAC')
```

RSME is therefore initialized with a path to the meta-parameters XML file and a note. The note is used to identify the model and generate a log with an identifiable name. For example, when executed, RSME will create a new subfolder (withing Results) named: "RSME\_19\_15\_05-07\_10\_2021\_single\_SAC\_9031769193263726". The name includes the date, time, note, and a unique identifier (randomly generated) for your simulation results.

![](https://3823822112-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MlM7rr4VP7XMZK5DA9U%2F-MlQM5x0rERlJhQtdpxo%2F-MlQXwB98o9hoqz5IXjd%2FScreen%20Shot%202021-10-07%20at%2019.17.28.png?alt=media\&token=577ca6ca-9ff2-44cf-95a3-54e2cadc073d)

Use the model specification to initiate a new simulation:

```
simulation = Simulation(simulation_parameters)
```

When a specific configuration runs for the first time, RSME will create a new pickle file, containing illumination events for the specified model and visual stimulus. It might take it a while to create this file (depending on the model's morphological complexity), however, next time you run it, RSME will load the stimulation data from this final, dramatically improving runtime.&#x20;

{% hint style="info" %}
In this case the generated file is: possible\_stimulation\_trains\_single\_SAC\_meta.xml\_lightdt0.2.p
{% endhint %}
