Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plotting PID listen edges #857

Merged
merged 1 commit into from
Nov 30, 2023
Merged

Fix plotting PID listen edges #857

merged 1 commit into from
Nov 30, 2023

Conversation

visr
Copy link
Member

@visr visr commented Nov 30, 2023

This was broken in the Python overhaul, self.network.node.static.df needed to be updated to self.network.node.df.
I added a test to make sure the plotting code at least doesn't error, using a model that has both discrete as well as PID control.

The rest of the diff is to fix printing PID listen edges if there is only time dependent PID control, like in https://deltares.github.io/Ribasim/python/examples.html#model-with-pid-control, since we only checked if if self.pid_control.static.df is not None.

This now looks good, discrete_control_of_pid_control:
image

Copy link
Collaborator

@SouthEndMusic SouthEndMusic left a comment

Choose a reason for hiding this comment

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

LGTM

@SouthEndMusic SouthEndMusic merged commit 4370236 into main Nov 30, 2023
14 of 15 checks passed
@SouthEndMusic SouthEndMusic deleted the plot-fix branch November 30, 2023 15:46
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