Skip to content

add ifs-forecast loader#12

Open
mpvginde wants to merge 16 commits into
mainfrom
feat/ifs-forecast-loader
Open

add ifs-forecast loader#12
mpvginde wants to merge 16 commits into
mainfrom
feat/ifs-forecast-loader

Conversation

@mpvginde

Copy link
Copy Markdown
Contributor

Adds

  • a loader for IFS deterministic and ensemble forecasts
  • tests for the new loader
  • optional dependency of cfgrib

@mpvginde mpvginde requested a review from leifdenby May 13, 2026 09:55
Comment thread tests/test_ifs_forecast_integration.py Outdated
@leifdenby leifdenby added this to the v0.1.0 milestone Jun 19, 2026
@mpvginde

Copy link
Copy Markdown
Contributor Author

Thanks @leifdenby! Linting is fixed and test have passed. I think we can merge this.

@leifdenby leifdenby 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.

Looking good :) A few suggestions for changes

Comment thread src/mlwp_data_loaders/loaders/ifs/forecast.py
Comment thread src/mlwp_data_loaders/loaders/ifs/forecast.py
Comment thread src/mlwp_data_loaders/loaders/ifs/forecast.py Outdated
Comment thread tests/test_ifs_forecast_integration.py Outdated
Comment thread pyproject.toml
@mpvginde mpvginde requested a review from leifdenby June 23, 2026 19:53

@leifdenby leifdenby 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.

Only one small suggestion, looking great!

try:
import cfgrib # noqa: F401
except ImportError as e:
raise ImportError("Please install the cfgrib package to load IFS-Forecasts") from e

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.

should we maybe say:

This can be done by installing the ifs optional extra dependencies of mlwp-data-loaders with e.g. pip install mlwp-data-loaders[ifs]

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