Skip to content

69 medunda does not support composedbasin#71

Merged
nakkari merged 3 commits into
mainfrom
69-medunda-does-not-support-composedbasin
Jun 3, 2026
Merged

69 medunda does not support composedbasin#71
nakkari merged 3 commits into
mainfrom
69-medunda-does-not-support-composedbasin

Conversation

@spiani

@spiani spiani commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@spiani spiani self-assigned this Jun 3, 2026
Copilot AI review requested due to automatic review settings June 3, 2026 10:40
@spiani spiani linked an issue Jun 3, 2026 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Medunda’s downloader CLI to accept domain specifications either as a YAML path or as a basin:<id> string, and extends domain handling to support composed (multi-component) basins by introducing a MultiPolygonalDomain.

Changes:

  • Switch --domain CLI parsing from Path to a richer parser (domain_from_string) supporting basin:<uuid> and YAML files.
  • Add MultiPolygonalDomain, bounding-box merge support, and composed-basin expansion logic in domain_from_basin.
  • Add a new basin-based domain descriptor (domains/CentralMediterranean.yaml).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/medunda/downloader.py Parses --domain into a ConcreteDomain at CLI parse time and passes it through download/validation.
src/medunda/domains/domain.py Adds composed-basin support via domain_from_basin, introduces MultiPolygonalDomain, and adds domain_from_string + YAML rename.
domains/CentralMediterranean.yaml New example/config domain using geometry.type: basin.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/medunda/domains/domain.py Outdated
Comment thread src/medunda/domains/domain.py
Comment thread src/medunda/domains/domain.py
@spiani spiani force-pushed the 69-medunda-does-not-support-composedbasin branch from 850b0e1 to 032873a Compare June 3, 2026 10:50
Copilot finished work on behalf of spiani June 3, 2026 10:56
Copilot stopped work on behalf of spiani due to an error June 3, 2026 11:00
@spiani spiani force-pushed the 69-medunda-does-not-support-composedbasin branch from f89b44f to 6954e69 Compare June 3, 2026 11:01
@spiani spiani requested a review from nakkari June 3, 2026 11:02
@nakkari nakkari merged commit 8997b75 into main Jun 3, 2026
4 checks passed
@nakkari nakkari deleted the 69-medunda-does-not-support-composedbasin branch June 3, 2026 13:12
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.

Medunda does not support ComposedBasin

4 participants