-
Notifications
You must be signed in to change notification settings - Fork 929
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
breaking: Add dependencies argument to custom space_drawer #2209
Conversation
Performance benchmarks:
|
Performance benchmarks:
|
0f68289
to
64ca475
Compare
Can you briefly explain in the PR start what the issue was, how it was caused and how this fixes it? |
It's described in #2208, and so it's redundant to say it again. |
No it's not. Anyone can stumble onto this PR with a git blame, a mention in the changelog or in any other way. Then the issue needs to be clearly described, as well as why it broke in the first place and how this fixes the issue. And most importantly, what the user needs to do or doesn't do. Documentation is important. Especially with a breaking PR. |
The issue I am having (and posted in #2208 ) is that when using a custom space drawer (in my case, I want to draw a network but with a different layout) the display is not reactive to changes that happen during a step. It is reactive to changes in It seems to this newcommer to Solara that it was a simple oversite not to pass in the dependencies in the call to The fix proposed here does resolve this issue. However, I note that in my testing, with this fix, the graph drawing is no longer reactive to changes in BTW I should mention that this is all using the server based Solara (solara run app.py) not in a notebook. |
Thanks a lot for the write up and for reporting this issue in the first place! I’m not familiar with the SolaraViz module to review this PR myself. I will leave a review to one of the other @projectmesa/maintainers. |
Could we implement this PR in a way that it's not breaking? And pass a warning if
Could you clarify if this PR introduces this as a new issue, or that this is an existing issue also present in the current Solara implementation? |
It seems to be an existing issue. The default space drawer for graphs also doesn't respond to changes in the number of nodes (but does respond to other changes). I will verify / investigate this and open a new issue if it is true. |
Okay tell me if I understand it correctly now: This is quite an edge-case, in the situation This PR fixes this, and the only breaking scenario is when Am I now fully correct? |
I think so but I would explain it a little differently, so I believe we are saying the same thing.
The challenge is Hope this makes sense/helps. I think to your point this will impact a small minority of users and @DrEntropy may be the first one. |
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.
LGTM
Thanks! Could you give a two or three sentence note that I can include in the release notes for the next Mesa 3.0 alpha release? |
Fixes #2208.