> For the complete documentation index, see [llms.txt](https://water-strategy.gitbook.io/waterstrategy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://water-strategy.gitbook.io/waterstrategy/russkii/uchebnye-posobiya/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/running-pywr-scenarios.md).

# Запуск pywr-сценариев

## Активируйте pywr-сценарии

На левой панели нажмите на *Просмотр сетевых данных* значок <img src="https://3817892601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9Lkjv9vPu8czwmW2MeG%2Fuploads%2Fgit-blob-08de263bbb31043285a07ec42bf049180d5515e8%2Fimage%20(13)%20(1).png?alt=media" alt="" data-size="line">

<figure><img src="https://3817892601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9Lkjv9vPu8czwmW2MeG%2Fuploads%2Fgit-blob-685ed70113084d0ad8dd05c90702e2c243ffe471%2Fimage%20(34).png?alt=media" alt=""><figcaption></figcaption></figure>

Откроется правая панель. В разделе **Входы**, введите»*сценарии»* и нажмите на *Добавить ввод* значок <img src="https://3817892601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9Lkjv9vPu8czwmW2MeG%2Fuploads%2Fgit-blob-1fd05d0cf69d3b65b7e2e3c8186ad94f300c321d%2Fimage%20(14)%20(1).png?alt=media" alt="" data-size="line">

<figure><img src="https://3817892601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9Lkjv9vPu8czwmW2MeG%2Fuploads%2Fgit-blob-b6654d3012b6356333d5e242891956491f629f90%2Fimage%20(39).png?alt=media" alt="" width="505"><figcaption></figcaption></figure>

Появится окно, введите»*сценарии»*, выберите **сценарии** атрибут и клик **Сохранить** как показано на следующем рисунке

<figure><img src="https://3817892601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9Lkjv9vPu8czwmW2MeG%2Fuploads%2Fgit-blob-fffcacc04854f3a68b581d45a14e54a039ece41f%2Fimage%20(16).png?alt=media" alt=""><figcaption></figcaption></figure>

Появится новое окно, выберите **ПИВР\_СЦЕНАРИИ** и нажмите **Сохранить**

<figure><img src="https://3817892601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9Lkjv9vPu8czwmW2MeG%2Fuploads%2Fgit-blob-b704b966012c0e16ef59983591ad9d9624006a54%2Fimage%20(18).png?alt=media" alt=""><figcaption></figcaption></figure>

Поскольку файл H5 содержит 4 фрейма данных на ключ, для этого необходимо **размер**= четыре (4). В этом случае сценарий pywr будет назван **Изменение климата**, и нет **Ансамбль** имена будут использоваться для различения их.

<figure><img src="https://3817892601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9Lkjv9vPu8czwmW2MeG%2Fuploads%2Fgit-blob-23157b518a73526fc3e1796bfa3862433653f146%2Fimage%20(40).png?alt=media" alt=""><figcaption></figcaption></figure>

Когда pywr-сценарий будет наконец создан, вы увидите следующее окно:

<figure><img src="https://3817892601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fn9Lkjv9vPu8czwmW2MeG%2Fuploads%2Fgit-blob-be8814d42fd886737bc846399d8d8ec3338c232c%2Fimage%20(41).png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://water-strategy.gitbook.io/waterstrategy/russkii/uchebnye-posobiya/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/running-pywr-scenarios.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
