Skip to content

feat(aggregation): add MAX to AggregationMethod - #6

Merged
sandrohuni merged 1 commit into
mainfrom
feat/aggregation-max
Aug 14, 2026
Merged

feat(aggregation): add MAX to AggregationMethod#6
sandrohuni merged 1 commit into
mainfrom
feat/aggregation-max

Conversation

@sandrohuni

Copy link
Copy Markdown
Collaborator

Problem

AggregationMethod was {SUM, MEAN}. A peak channel — the window max a flood threshold is set on — could not be declared at all, making the peak-target feature undeclarable through FI.

Change

  • MAX = "max" added to forecast_interface.common.aggregation.AggregationMethod
  • Enum count/value test updated (2 → 3)
  • docs/input_requirement.md aggregation notes mention MAX

aggregation stays optional; no other FI change.

Verification

uv run pytest → 185 passed. uv run mypy → clean. uv run ruff check → clean.

Tagged v0.1.19 for downstream pinning (aquacast bumps its pin from v0.1.18).

🤖 Generated with Claude Code

Peak channels (e.g. window-max discharge a flood threshold is set on)
could not be declared through FI. MAX makes them declarable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@sandrohuni
sandrohuni force-pushed the feat/aggregation-max branch from 02ac13f to 5eab82a Compare August 14, 2026 11:03
@sandrohuni
sandrohuni merged commit bd81cca into main Aug 14, 2026
3 checks passed
@sandrohuni
sandrohuni deleted the feat/aggregation-max branch August 14, 2026 11:21
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