
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!E.ON EBC RWTH Aachen University
http://img.shields.io/:license-mit-blue.svg]([***] https://travis-ci.com/RWTH-EBC/uesgraphs.svg?token=ssfy4ps1Qm5kvs5yAxfm&branch=master](https://travis-ci.com/RWTH-EBC/uesgraphs)
uesgraphs is a Python package to describe Urban Energy Systems and manage their data in a Python graph structure. We extend the https://networkx.github.io/ Graph class and add basic methods to represent buildings and energy networks in the graph. uesgraphs can be used as a foundation to analyze energy network structures, evaluate district energy systems or generate simulation models.
uesgraphs is being developed at RWTH Aachen University, E.ON Energy Research Center, Institute for Energy Efficient Buildings and Indoor Climate.
uesgraphs relies on other packages to function correctly. On Windows, it may be
necessary to install shapely and pyproj before uesgraphs.
We recommend to download the .whl
files for installing shapely
and pyproj from the
Unofficial Windows Binaries for Python Extension Packages
for your system and python versions. Install both .whl files with
pip install <path/to/file.whl>.
One way to get uesgraphs set up is to use a fresh Conda environment by following these steps:
conda update condaconda create -n <nameOfEnvironment> python=3.6source activate <nameOfEnvironment> on Linux
or activate <nameOfEnvironment> on Windowsgit clone https://github.com/RWTH-EBC/uesgraphs.gitpip install -e <path/to/your/uesgraphs>py.test --mplYou can assemble a graph of an urban energy system by adding buildings, network
nodes and edges to an UESGraph object. The following code builds a heating
network from one building to another, connected via one network node:
Pythonimport uesgraphs as ug from shapely.geometry import Point graph = ug.UESGraph() supply = graph.add_building( name='Supply', position=Point(0, 10), is_supply_heating=True, ) demand = graph.add_building( name='Building 1', position=Point(50, 15), ) heating_node = graph.add_network_node( network_type='heating', position=Point(30, 5), ) graph.add_edge(supply, heating_node) graph.add_edge(heating_node, demand)
You can go on to plot this energy system with
Pythonvis = ug.Visuals(graph) vis.show_network( show_plot=True, scaling_factor=30, )
!Example graph
Instead of building a graph from scratch, uesgraphs comes with an example containing all supported energy network types. You can create this example graph with
Pythonimport uesgraphs as ug from shapely.geometry import Point graph = ug.simple_dhc_model() graph = ug.add_more_networks(graph) vis = ug.Visuals(example_district) fig = vis.show_network( show_plot=True, scaling_factor=10, )
This leads to the following plot:
!Example graph
You can extract single networks into their own subgraph with
Pythonheating_network_1 = graph.create_subgraphs('heating')['default']
In the example above, this extracts the first of the two heating networks shown in red:
!Example graph
You can use this graph framework to add data to the nodes and edges, e.g.
Pythonimport uesgraphs as ug from shapely.geometry import Point graph = ug.UESGraph() demand = graph.add_building( name='Building 1', position=Point(50, 15), ) graph.nodes[demand]['heat_load_kW'] = 200
This can be used as a foundation to analyze networks or to generate models.
uesgraphs is released by RWTH Aachen University, E.ON Energy Research Center, Institute for Energy Efficient Buildings and Indoor Climate, under the https://github.com/RWTH-EBC/uesgraphs/blob/master/LICENSE.md.
To reference uesgraphs, please cite the following paper (doi https://doi.org/10.1016/j.energy.2016.04.023):
Marcus Fuchs, Jens Teichmann, Moritz Lauster, Peter Remmen, Rita Streblow, Dirk Müller: Workflow automation for combined modeling of buildings and district energy systems, Energy, Volume 117, Part 2, 2016, Pages 478-484.
The BibTex for this paper is:
BibTex@article{Fuchs2016, doi = {10.1016/j.energy.2016.04.023}, url = {https://doi.org/10.1016/j.energy.2016.04.023}, year = {2016}, month = {dec}, publisher = {Elsevier {BV}}, volume = {117}, pages = {478--484}, author = {Marcus Fuchs and Jens Teichmann and Moritz Lauster and Peter Remmen and Rita Streblow and Dirk M\"{u}ller}, title = {Workflow automation for combined modeling of buildings and district energy systems}, journal = {Energy} }
This work was supported by the Helmholtz Association under the Joint Initiative “Energy System 2050 – A Contribution of the Research Field Energy”.
Parts of uesgraphs have been developed within public funded projects and with financial support by BMWi (German Federal Ministry for Economic Affairs and Energy).
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务