Visualization with CanvasGrid - AttributeError: 'MyModel' object has no attribute 'grid' #2102
Replies: 1 comment 1 reply
-
Because this class import, https://github.com/romain-sen/MAS-nuclear-wates/blob/1d681eb1ac900d8f5a1a620c24e602d785e37de3/without-communication/visualization.py#L9, overshadows the import in L1. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am having trouble to visualize my model I created. I did all the steps I did with the MoneyModel example and yet I am still having an error when I try the visualization with CanvasGrid :
AttributeError: 'NuclearWasteModel' object has no attribute 'grid'
I initialize my grid in my model so why am I having this error ?
please find my code here : https://github.com/romain-sen/MAS-nuclear-wates/tree/feat/visualization
Beta Was this translation helpful? Give feedback.
All reactions