projectmesa / mesa-examples

Seminal agent-based models developed using Mesa
Other
105 stars 123 forks source link

Error when running the Urban Growth Model #121

Open whitbern opened 2 months ago

whitbern commented 2 months ago

When I try to run the scripts in Jupyter Notebook for the Urban Growth Model, I get an error having to do with the UrbanCell class--see the screenshot: UrbanGrowthError

I ran the space.py text first in Jupyter; then when I tried to import parts of the model script, and %run UrbanGrowthSpace.ipynb, it threw an error. Is this because the class name shares a name with one of the attributes?

UrbanCell

I really appreciate any help you can provide. Sorry if this is confusing.

wang-boyu commented 4 weeks ago

Yes I don't think you can use a class within itself