Skip to content

Location lists - #18

Merged
orlandoisepic merged 11 commits into
developfrom
location-lists
Sep 1, 2026
Merged

Location lists#18
orlandoisepic merged 11 commits into
developfrom
location-lists

Conversation

@orlandoisepic

Copy link
Copy Markdown
Contributor

This resolves #17 .
This also resolves #6 .

The topology's tags from-/to-location-name are now from-/to-location-names (note the 's' at the end). This means that they are now also expected to be of type "array" and contain "string" entries.

This was requested by @uekerman .

There is also a test for this under tests/adapter_config_generation/location_lists/

Technical changes

  • preprocessing and validation has been moved completely to TopologyProcessor
  • Old preprocessing method _data_preprocessing() in TopologyReader has been removed (it was actively working against allowing location-lists 😔)
  • Some tests have been updated as they now need to use the location-lists
  • I think this is it :) It does not look like a lot, to be honest, but it took a while.

Change `from-/to-location-name` → `from-/to-location-names` (note the 's' at the end).
Updaet to allow lists in `from-/to-location-names`.
The preprocessing method is now redundant.
Move the preprocessing and validation logic to a new class.
New validation and preprocessing logic.
Update to new reader and processing.
This scenario is not correct anymore. Now it is supposed to cause an error.
This error is already checked in "preprocessing/exchange_loop"
This was linked to issues Aug 29, 2026
Update the description for new tags
@orlandoisepic orlandoisepic mentioned this pull request Aug 29, 2026

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

I only had a very brief look, but this looks like what I had in mind. Thanks!

Comment thread precicecasegenerate/schemas/README.md Outdated
orlandoisepic and others added 2 commits September 1, 2026 05:57
Co-authored-by: Benjamin Uekermann <benjamin.uekermann@gmail.com>
@orlandoisepic
orlandoisepic merged commit a493852 into develop Sep 1, 2026
1 check passed
@orlandoisepic
orlandoisepic deleted the location-lists branch September 1, 2026 04:11
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.

Change topology locations to list Preprocessing of topology

2 participants