> 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.

![](/files/-MlQXwB98o9hoqz5IXjd)

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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://elishai.gitbook.io/retinal-stimulation-modeling-environment/single-sac-model/model-initialization.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
