Commit bb4f4079 authored by Eric Duminil's avatar Eric Duminil
Browse files

Moving simstadtpy to simstadt

parent a61f5adf
......@@ -4,9 +4,9 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
## Project Overview
`simstadtpy` is a Python library for running and testing [SimStadt](https://simstadt.hft-stuttgart.de/) workflows programmatically. SimStadt is a city simulation tool for energy/urban analysis. The library wraps SimStadt's CLI to execute workflows against CityGML files and parse the results into pandas DataFrames.
`simstadt` is a Python library for running and testing [SimStadt](https://simstadt.hft-stuttgart.de/) workflows programmatically. SimStadt is a city simulation tool for energy/urban analysis. The library wraps SimStadt's CLI to execute workflows against CityGML files and parse the results into pandas DataFrames.
This project is in early development. The goal is to consolidate code from two prior projects (`old/cgsc/` and `old/sektorsim/`) into a proper library under `src/simstadtpy/`.
This project is in early development. The goal is to consolidate code from two prior projects (`old/cgsc/` and `old/sektorsim/`) into a proper library under `src/simstadt/`.
## Commands
......@@ -17,7 +17,7 @@ This project uses [uv](https://docs.astral.sh/uv/) as the package manager.
uv sync
# Run the CLI entry point
uv run simstadtpy
uv run simstadt
# Run tests (once added — use pytest)
uv run pytest
......
[project]
name = "simstadtpy"
name = "simstadt"
version = "0.1.0"
description = "Python library for using and testing SimStadt workflows."
readme = "README.md"
......@@ -15,7 +15,7 @@ dependencies = [
]
[project.scripts]
simstadtpy = "simstadtpy:main"
simstadt = "simstadt:main"
[dependency-groups]
test = ["pytest>=8.0"]
......
......@@ -28,5 +28,5 @@ __all__ = [
def main() -> None:
print("simstadtpy - Python library for SimStadt workflows.")
print("simstadt - Python library for SimStadt workflows.")
print("See https://simstadt.hft-stuttgart.de/ for SimStadt documentation.")
......@@ -23,7 +23,7 @@ def test_project_path() -> Path:
@pytest.fixture(scope="session")
def simstadt_folder():
"""Skip the test if SimStadt is not installed."""
from simstadtpy.runner import get_simstadt_folder
from simstadt.runner import get_simstadt_folder
try:
return get_simstadt_folder()
except ValueError as e:
......
......@@ -5,7 +5,7 @@ from pathlib import Path
import pandas as pd
import pytest
from simstadtpy import (
from simstadt import (
GreenWaterResults,
HeatDemandResults,
KPI,
......
......@@ -4,8 +4,8 @@ from pathlib import Path
import pytest
from simstadtpy.results import KPI
from simstadtpy.runner import run_workflow_with_citygml
from simstadt.results import KPI
from simstadt.runner import run_workflow_with_citygml
TEST_DATA = Path(__file__).parent / "data"
TEST_TEMPLATES = TEST_DATA / "Templates"
......
......@@ -4,7 +4,7 @@ import re
import pytest
from simstadtpy.runner import get_simstadt_output
from simstadt.runner import get_simstadt_output
SIMSTADT_MIN_VERSION = "0.14.0"
SIMSTADT_MIN_DATE = "20250701"
......
......@@ -933,7 +933,7 @@ wheels = [
]
[[package]]
name = "simstadtpy"
name = "simstadt"
version = "0.1.0"
source = { editable = "." }
dependencies = [
......
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