> 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/arby/albramj-altalymyh/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/running-pywr-scenarios.md).

# تشغيل سيناريوهات pywr

## قم بتنشيط سيناريوهات pywr

على اللوحة اليسرى، انقر فوق *عرض بيانات الشبكة* أيقونة <img src="https://3021411535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frrf5uqVTUdMhNxpVrDQF%2Fuploads%2Fgit-blob-08de263bbb31043285a07ec42bf049180d5515e8%2Fimage%20(13)%20(1).png?alt=media" alt="" data-size="line">

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

سيؤدي هذا إلى فتح اللوحة اليمنى. في القسم **المدخلات**، اكتب»*سيناريوهات»* وانقر على *إضافة إدخال* أيقونة <img src="https://3021411535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frrf5uqVTUdMhNxpVrDQF%2Fuploads%2Fgit-blob-1fd05d0cf69d3b65b7e2e3c8186ad94f300c321d%2Fimage%20(14)%20(1).png?alt=media" alt="" data-size="line">

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

سيتم عرض نافذة، اكتب»*سيناريوهات»*، حدد **سيناريوهات** السمة والنقر **وفر** كما هو موضح في الصورة التالية

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

ستظهر نافذة جديدة، حدد **بيور\_سيناريوهات** وانقر **حفظ**

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

نظرًا لأن ملف H5 يحتوي على 4 إطارات بيانات لكل مفتاح، فإن هذا يتطلب **بحجم**= أربعة (4). في هذه الحالة، سيتم تسمية سيناريو pywr **تغير المناخ**، ولا **فرقة** سيتم استخدام الأسماء للتمييز بينها.

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

عند إنشاء سيناريو pywr أخيرًا، ستتمكن من رؤية النافذة التالية:

<figure><img src="https://3021411535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frrf5uqVTUdMhNxpVrDQF%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 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://water-strategy.gitbook.io/waterstrategy/arby/albramj-altalymyh/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/running-pywr-scenarios.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.
