> 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/zhong-guo-ren/jiao-cheng/pywr-scenarios-reading-external-dataframe-and-adding-custom-rules/running-pywr-scenarios.md).

# 运行 pywr 场景

## 激活 pywr 场景

在左侧面板上，单击 *查看网络数据* 图标 <img src="/files/6HsTgt8GKicrPS7Ncdkt" alt="" data-size="line">

<figure><img src="/files/2MWSsq8wrGpKDl67IVaS" alt=""><figcaption></figcaption></figure>

这将打开右侧面板。在本节中 **输入**，键入”*场景”* 然后点击 *添加输入* 图标 <img src="/files/5BecbFNKJFJ6qRkYvZA6" alt="" data-size="line">

<figure><img src="/files/v2PJ09Dzmus7ptWU3BUB" alt="" width="505"><figcaption></figcaption></figure>

将显示一个窗口，键入”*场景”*，选择 **场景** 属性并单击 **保存** 如下图所示

<figure><img src="/files/uKSiiaZvoBGxtp1nQy0Q" alt=""><figcaption></figcaption></figure>

将弹出一个新窗口，选择 **PYWR\_场景** 然后点击 **保存**

<figure><img src="/files/Hk2yu5BgfOZXxR3UkFBV" alt=""><figcaption></figcaption></figure>

由于 H5 文件每个密钥包含 4 个数据框，因此需要 **尺寸**=四 (4)。在这种情况下，pywr场景将被命名为 **气候变化**，而且不是 **合奏** 名称将用于区分它们。

<figure><img src="/files/Pzx9DvjfkS68Om2ahceO" alt=""><figcaption></figcaption></figure>

当最终创建 pywr-scenario 时，您将能够看到以下窗口：

<figure><img src="/files/sOHBEEeW8TqbgkICdI1E" 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/zhong-guo-ren/jiao-cheng/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.
