Skip to content

EC-BE-VLG, ES and IE-LPIS convert correctly again - #327

Merged
m-mohr merged 3 commits into
mainfrom
fix-ec-be-vlg-es-codelist
Sep 25, 2026
Merged

m-mohr merged 3 commits into
mainfrom
fix-ec-be-vlg-es-codelist

Conversation

@ivorbosloper

@ivorbosloper ivorbosloper commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes broken ec_be_vlg and es converters, taken from #214, and ie_lpis, which still set ec_mapping_csv after #320 and so lost its HCAT mapping. A new test catches that old name.

@ivorbosloper
ivorbosloper requested a review from m-mohr September 24, 2026 20:28
@ivorbosloper
ivorbosloper marked this pull request as ready for review September 24, 2026 20:28
Comment thread fiboa_cli/datasets/es.py Outdated
Comment thread CHANGELOG.md Outdated
@ivorbosloper
ivorbosloper force-pushed the fix-ec-be-vlg-es-codelist branch from 9e3b3ef to e0530a1 Compare September 25, 2026 10:33
@ivorbosloper ivorbosloper changed the title EC-BE-VLG converts again, and ES maps its crops to HCAT EC-BE-VLG, ES and IE-LPIS convert correctly again Sep 25, 2026
ivorbosloper and others added 2 commits September 25, 2026 12:53
- ec_be_vlg: drop the variants inherited from be_vlg, which vecorel refuses next to sources
- es: map PARC_PRODUCTO to HCAT with fiboa.org/code/es/es.csv; the old code list URL was a 404
- test that no converter declares both sources and variants

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@m-mohr
m-mohr force-pushed the fix-ec-be-vlg-es-codelist branch from 70af61d to f9c916c Compare September 25, 2026 11:01

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.

Copilot review overview

🟡 Changes recommended

Add end-to-end and HCAT output assertions for EC-BE-VLG, ES, and IE-LPIS.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Fixes converter configuration and HCAT mapping regressions for EC-BE-VLG, ES, and IE-LPIS.

Changes:

  • Corrects EC-BE-VLG source and variant handling.
  • Adds or restores HCAT mappings for ES and IE-LPIS.
  • Relaxes single-category HCAT validation and adds regression checks.
File Summary
tests/​test_converters.py Adds converter regression checks.
fiboa_cli/​datasets/​ie_lpis.py Restores the HCAT mapping configuration.
fiboa_cli/​datasets/​es.py Enables HCAT mapping for Spain.
fiboa_cli/​datasets/​ec_be_vlg.py Removes inherited yearly variants.
fiboa_cli/​datasets/​commons/​hcat.py Allows single-category mappings.
CHANGELOG.md Documents the converter fixes.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +12 to +13
# the single EuroCrops 2021 release, not the parent's yearly editions
variants = {}
@m-mohr
m-mohr merged commit 5efbd75 into main Sep 25, 2026
8 checks passed
@m-mohr
m-mohr deleted the fix-ec-be-vlg-es-codelist branch September 25, 2026 11: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.

3 participants