Skip to content

minor refactoring and CI update#146

Open
maurerle wants to merge 9 commits into
wind-python:devfrom
maurerle:refactor-closest-height
Open

minor refactoring and CI update#146
maurerle wants to merge 9 commits into
wind-python:devfrom
maurerle:refactor-closest-height

Conversation

@maurerle

@maurerle maurerle commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

extract _get_closest_height helper to reduce code duplication

remove legacy object inheritance from classes as this is a python 2 relict

maurerle added 9 commits July 7, 2026 08:18
- actions/checkout: v3 -> v7
- actions/setup-python: v4 -> v6
- conda-incubator/setup-miniconda: v2 -> v4

Assisted-by: gemini-3.1-pro
No released version of pytest-notebook is compatible with pytest 8+ —
all versions still declare 'path' in the pytest_collect_file hookimpl,
which was removed from the hookspec in pytest 8. This causes a
PluginValidationError at startup and prevents any tests from running.

The notebook tests in example/test_examples.py are already excluded
from the testpaths in pytest.ini, so removing this dependency does not
affect CI coverage.

Assisted-by: gemini-3.5-flash
Use lowercase frequency 'h' instead of 'H' and use .iloc[0] instead of [0] on DatetimeIndex.

Assisted-by: gemini-3.5-flash
The OpenEnergyPlatform (OEP) API URL changed from oep.iks.cs.ovgu.de to openenergyplatform.org.
The test_wrong_url_load_turbine_data test is also updated to use an invalid table 'wrong_table' rather than 'wrong_schema' because the OEP API now returns 200 OK for invalid schemas.

Assisted-by: gemini-3.5-flash
The OEDB database currently contains more than 20% faulty turbine data entries. Setting the threshold to 1.0 forces the downloaded data to be saved to disk, ensuring that the file modification timestamp check passes.

Assisted-by: gemini-3.5-flash
@maurerle maurerle force-pushed the refactor-closest-height branch from d0fe639 to e4b9a27 Compare July 8, 2026 06:38
@maurerle maurerle changed the title minor refactoring minor refactoring and CI update Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant