Skip to content

fix pipe mapper message for diameter#362

Open
AshrafAlmohagryDeltares wants to merge 3 commits into
mainfrom
361-fix-message-raised-for-missing-pipe-diameter-eventhough-its-available
Open

fix pipe mapper message for diameter#362
AshrafAlmohagryDeltares wants to merge 3 commits into
mainfrom
361-fix-message-raised-for-missing-pipe-diameter-eventhough-its-available

Conversation

@AshrafAlmohagryDeltares

@AshrafAlmohagryDeltares AshrafAlmohagryDeltares commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

small fix for the messages shown in the terminal for the diameter. Currently messages shows value None is used if default value is used as diameter. Also, because the message is raised by get_property method, it doesnt indicate correctly if its the inner diameter or diameter which is missing.

return inner_diameter

dn_diameter = esdl_asset.get_property("diameter", PIPE_DEFAULTS.diameter)
if dn_diameter is PIPE_DEFAULTS.diameter:

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.

This looks weird, I do not know what the type of the diameter property is in ESDL, but it is not a float, but then you compare it to a float.
I do not know the solution, but this does not feel right.

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.

Fix message raised for missing pipe diameter eventhough its available

2 participants