Skip to content

Comments

Upper limit of pipe specification in esdl#429

Draft
KobusVanRooyen wants to merge 3 commits into418-asset-max-size-and-esdl-attribute-usedfrom
pipe-max-size-and-esdl-attribute-used
Draft

Upper limit of pipe specification in esdl#429
KobusVanRooyen wants to merge 3 commits into418-asset-max-size-and-esdl-attribute-usedfrom
pipe-max-size-and-esdl-attribute-used

Conversation

@KobusVanRooyen
Copy link
Collaborator

No description provided.

Comment on lines 290 to 291
self._ESDLMixin__energy_system_handler.energy_system.esdlVersion is not None
and self._ESDLMixin__energy_system_handler.energy_system.esdlVersion > "v2507"# "v2401" # "v2507" # Currently latest esdlVersion="v2507"
Copy link
Collaborator

Choose a reason for hiding this comment

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

extract the version number before the if statement, than if statement can be compact on one line.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

min_size_idx = min_size_idx[0]

max_size = asset.attributes["diameter"].name
# Backward compatibility:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would plug this whole part that was added in a small function, to keep it a bit more clean

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.

2 participants