Skip to content

feat(data): add ENTSO-E interim-CSV loaders (ported from spotforecast2.tasks)#371

Merged
bartzbeielstein merged 2 commits into
developfrom
feat/entsoe-loaders
Jun 12, 2026
Merged

feat(data): add ENTSO-E interim-CSV loaders (ported from spotforecast2.tasks)#371
bartzbeielstein merged 2 commits into
developfrom
feat/entsoe-loaders

Conversation

@bartzbeielstein

Copy link
Copy Markdown
Collaborator

Summary

Ports entsoe_data_loader / entsoe_test_data_loader verbatim from spotforecast2.tasks.task_entsoe into a new spotforecast2_safe.data.entsoe_loader module (modeled on data/demo_loader.py). They depend only on pandas + get_data_home, so the safe package is their natural home.

This is step 1 of the cross-repo removal of spotforecast2.tasks (KB task-sf2-task-entsoe-extraction): bart26k-lecture switches its imports here next, then sf2 deletes the subpackage.

Changes

  • New src/spotforecast2_safe/data/entsoe_loader.py (docstrings + live examples moved along, import paths updated)
  • Exported from spotforecast2_safe.data alongside load_actual_combined
  • New tests/test_entsoe_loader.py (8 tests: path resolution, FileNotFoundError hint, horizon windowing, tz handling)
  • _quarto.yml + generated reference pages (Data section)
  • Separate style: commit fixes pre-existing black/isort drift in 6 untouched files

Verification

  • uv run pytest tests/ -q2599 passed, 1 skipped
  • ruff / black / isort / reuse — green
  • quartodoc build + full quarto render --no-cache — green (3 pre-existing dead-link warnings about task_safe_n_to_1* pages, unrelated)

🤖 Generated with Claude Code

bartzbeielstein and others added 2 commits June 13, 2026 00:33
Flagged by black 25 / isort 8; no functional change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…2.tasks)

entsoe_data_loader and entsoe_test_data_loader move verbatim from
spotforecast2.tasks.task_entsoe ahead of that subpackage's removal; they
depend only on pandas and get_data_home, so the safe package is their
natural home. Exported from spotforecast2_safe.data alongside
load_actual_combined; documented under the Data quartodoc section; loader
behavior covered by tests/test_entsoe_loader.py.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
import pandas as pd
import pytest

import spotforecast2_safe.data.entsoe_loader as entsoe_loader
@bartzbeielstein bartzbeielstein merged commit e659969 into develop Jun 12, 2026
10 checks passed
@bartzbeielstein bartzbeielstein deleted the feat/entsoe-loaders branch June 12, 2026 22:40
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