Skip to content

PAINT version 3.1.0 - #150

Merged
kalebphipps merged 4 commits into
mainfrom
upgrade-wetterdienst-and-python
Oct 22, 2026
Merged

kalebphipps merged 4 commits into
mainfrom
upgrade-wetterdienst-and-python

Conversation

@kalebphipps

Copy link
Copy Markdown
Member

Description

This is only relevant for the paint.preprocessing package. The upgrade of polars to version 2.0 broke the DWD wetterdienst package. This PR fixes that and also drops support for python 3.10 since it no longer receives security updates.

PLEASE NOTE: Do not merge this PR until we have merged PR #149 and created a patch release version 3.0.1 from this. The logic is:

  • 3.0.1 simply pins polars to before version 2.
  • This will be the last version supporting python 3.10.
  • Any user who tries to install python 3.10 will therefore be automatically directed via PyPI to version 3.0.1 and have a working paint version.
  • Without this patch the pypi release for python 3.10 would fail for preprocessing.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@kalebphipps
kalebphipps requested a review from mcw92 October 20, 2026 21:54
@kalebphipps kalebphipps self-assigned this Oct 20, 2026
@codecov

codecov Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.61%. Comparing base (555a6f8) to head (416ca54).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #150      +/-   ##
==========================================
- Coverage   98.67%   98.61%   -0.07%     
==========================================
  Files          26       26              
  Lines        1435     1440       +5     
==========================================
+ Hits         1416     1420       +4     
- Misses         19       20       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown
Name Stmts Miss Cover Missing
paint/__init__.py 9 0 100%
paint/data/dataset.py 82 1 99% 18
paint/data/dataset_splits.py 155 1 99% 51
paint/preprocessing/__init__.py 15 0 100%
paint/preprocessing/binary_extractor.py 54 1 98% 84
paint/preprocessing/calibration_stac.py 10 0 100%
paint/preprocessing/catalog_stac.py 4 0 100%
paint/preprocessing/deflectometry_stac.py 10 0 100%
paint/preprocessing/dwd_mappings.py 18 0 100%
paint/preprocessing/dwd_stac_item.py 5 0 100%
paint/preprocessing/dwd_weather.py 47 1 98% 104
paint/preprocessing/focal_spot_extractor.py 93 5 95% 85, 92, 116, 273, 320
paint/preprocessing/heliostat_catalog_stac.py 19 2 89% 40, 48
paint/preprocessing/juelich_weather_converter.py 51 3 94% 59, 111-114
paint/preprocessing/juelich_weather_mappings.py 34 0 100%
paint/preprocessing/juelich_weather_stac_item.py 6 0 100%
paint/preprocessing/properties_stac.py 11 0 100%
paint/preprocessing/target_cropper.py 54 1 98% 205
paint/preprocessing/tower_measurements.py 48 0 100%
paint/preprocessing/tower_stac.py 5 0 100%
paint/preprocessing/weather_collection_stac.py 5 0 100%
paint/util/__init__.py 28 0 100%
paint/util/gauss_kruger_converter.py 9 0 100%
paint/util/paint_mappings.py 591 0 100%
paint/util/preprocessing.py 32 0 100%
paint/util/utils.py 45 5 89% 136-141
TOTAL 1440 20 99%

@kalebphipps
kalebphipps force-pushed the upgrade-wetterdienst-and-python branch from 2875e07 to feb3f55 Compare October 20, 2026 22:17

@mcw92 mcw92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

Comment thread pyproject.toml
"matplotlib",
"colorlog",
"wetterdienst==0.95.1",
"wetterdienst==0.162.0",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Their versioning practices look suspicious to me 😂 .

@kalebphipps
kalebphipps merged commit c302372 into main Oct 22, 2026
15 checks passed
@kalebphipps
kalebphipps deleted the upgrade-wetterdienst-and-python branch October 22, 2026 14:48
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.

2 participants