-
Notifications
You must be signed in to change notification settings - Fork 5
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
Merging models #914
Merging models #914
Conversation
@evetion mypy still complains about a few things, I don't know what the best way would be to fix them. |
@@ -1065,3 +1071,123 @@ def allocation_example_model(): | |||
) | |||
|
|||
return model | |||
|
|||
|
|||
def main_network_with_subnetworks_model(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll pick up this model in #851 for testing.
self.network.edge.plot(ax=ax, zorder=2) | ||
self.plot_control_listen(ax) | ||
self.network.node.plot(ax=ax, zorder=3) | ||
|
||
ax.legend(loc="lower left", bbox_to_anchor=(1, 0.5)) | ||
handles, labels = ax.get_legend_handles_labels() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should ideally not be part of the PR (but will ignore it here)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean the whole subnetwork plotting thing? I guess it would have bean cleaner if that was done in a separate PR, but it did help with debugging of the model merging
To do:
|
|
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 2 New issues |
This is paused, after #1110 we can decide how to proceed with this. |
Closing this PR, since so many things changed that it probably needs a new start. The PR can still be used as inspiration for #912. |
Fixes #912.
The general design is as in the above mentioned issue. 2 things that are kept in mind when merging model B into model A: