Skip to content

Error in extracting agent from GeoSpace.agents in tutorial using Spyder #193

@whitbern

Description

@whitbern

this is an attachment of the script mesa_geo_tutorial.txt
this is a screenshot of the error error_mesa_geo_tutorial

Good evening, currently, I am doing the tutorial for Mesa-geo using Spyder. When I try to extract the agents using this line:

agent = m.space.agents[0]

I get a TypeError stating that: 'type' object is not subscriptable. Before that, I get a "Coordinate = tuple[int, int]." However, when I look at the mesa.space module, they mention lists?

I would expect for this just to give me the first agent from the listed url.

Thankfully this works just fine in Jupyter Notebook. Can you all help me figure out why this is not working in Spyder?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions