"git@transfer.hft-stuttgart.de:zedflow/test-k1.git" did not exist on "41fad6f7d0504c2dc8e092329a1240d63243ea0a"
Commit 2b6eb969 authored by Eric Duminil's avatar Eric Duminil
Browse files

Adding README

parent 0ee562e3
# simstadt
A Python library for running and testing [SimStadt](https://simstadt.hft-stuttgart.de/) workflows programmatically.
SimStadt is a city simulation tool for energy and urban analysis developed at HFT Stuttgart. This library wraps its CLI to execute workflows against CityGML files and parse the results into pandas DataFrames.
## Requirements
- Python 3.10+
- [SimStadt](https://simstadt.hft-stuttgart.de/download/InstallFiles/SimStadt2_latest.zip) installed separately
## Installation
```bash
pip install simstadt
```
## Usage
```python
from simstadt import heatdemand_simulation, photovoltaic_simulation
results = heatdemand_simulation("path/to/city.gml", "Wuerzburg-hour.csv")
print(results.dataframe)
print(results.kpis)
pv = photovoltaic_simulation("path/to/city.gml", "Wuerzburg-hour.csv")
print(pv.dataframe)
```
SimStadt is located automatically via the `SIMSTADT_FOLDER` environment variable, or by searching `~/Desktop` for a `SimStadt2_0.*/` directory.
Workflow templates are resolved via `SIMSTADT_TEMPLATE_PATH`, or a `Template/` directory in the current working directory.
## Development
```bash
uv sync
uv run pytest
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment