Skip to content

Added additional check to only include heatstorages and not ates#340

Merged
samvanderzwan merged 7 commits intomainfrom
339-bug-in-conversion-of-ates-in-controller
Feb 12, 2026
Merged

Added additional check to only include heatstorages and not ates#340
samvanderzwan merged 7 commits intomainfrom
339-bug-in-conversion-of-ates-in-controller

Conversation

@samvanderzwan
Copy link
Contributor

No description provided.

@samvanderzwan samvanderzwan linked an issue Feb 12, 2026 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a stricter storage conversion path so only actual heat storages are treated as storages (and not misclassified ATES assets).

Changes:

  • Introduces get_esdl_type() on ESDL asset wrappers to expose an asset’s ESDL type as a string.
  • Refactors controller mapping to convert storages via a dedicated convert_heat_storages_and_ates() helper and filters the “storage” set.

Reviewed changes

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

File Description
src/omotes_simulator_core/entities/assets/esdl_asset_object.py Adds get_esdl_type() used to distinguish true storages vs ATES.
src/omotes_simulator_core/adapter/transforms/controller_mapper.py Refactors storage mapping into a helper and adds an extra filter step for storages.

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

Copy link
Contributor

@vanmeerkerk vanmeerkerk left a comment

Choose a reason for hiding this comment

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

Kijk even of je een test kan toevoegen/aanpassen die echt checkt dat die ATES en HeatS|torage aparte lijsten zijn.

Copy link
Contributor

@vanmeerkerk vanmeerkerk left a comment

Choose a reason for hiding this comment

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

Merge

@samvanderzwan samvanderzwan merged commit f1870ec into main Feb 12, 2026
8 checks passed
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.

Bug in conversion of ATES in controller

2 participants