-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
examples: Rename model.grid to model.space #1344
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
Conversation
|
Ugh, this is actually a breaking change, because HexGridVisualization and CanvasGridVisualization assume |
This is a pretty big one where I think the majority of user visualizations will break. I started working through some work arounds but none were suitable, so will think more on it. Broad strokes I think there is three paths:
|
|
There is always room for adding an informative error message, at the right time. In the 2 classes, we check if users have |
|
I think this is not worth a breaking change. I think we should either
The reason for 2 is that I think depending on an implicit naming scheme is bad practice. We should either somehow enforce a name or leave the choice completely open to the users. |
Concur, and I vote 2 as we have already had issues with implicit naming and my bias would be to leaving the choice to the users |
|
We sidestepped the |
|
We could just add |
|
The width and height could be passed explicitly, but what about
|
mycanvas = CanvasGrid(grid=mymodel.space, canvas_width=500, canvas_height=500) |
|
Since the examples are now in their own repo this can be closed |
Fixes #1227.