GithubHelp home page GithubHelp logo

wang-boyu / agents-and-networks-in-python Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 7.0 20.66 MB

Agents and Networks Model in Python

License: Other

Makefile 0.21% Python 1.58% Jupyter Notebook 96.95% NetLogo 1.27%

agents-and-networks-in-python's Introduction

๐Ÿ‘‹ Hi there!

๐ŸŽ“ I'm currently pursuing my PhD in Geography at the University at Buffalo, under the guidance of Prof. Andrew Crooks. My academic journey revolves around agent-based modeling, geographic information science, machine learning, and urban simulation. I hold an MSc and BSc in Physics from the National University of Singapore.

๐Ÿ” Before diving into the world of research, I honed my skills in the industry:

  • ๐Ÿ“Š Data Scientist at Hewlett Packard Enterprise's APAC Innovation Center in Singapore.
  • ๐Ÿ”ง R&D Engineer at TUMCREATE and the Singapore-MIT Alliance for Research and Technology (SMART) Centre.
  • ๐Ÿ’ป Software Engineer at Cognizant.

๐ŸŒ Check out my personal website for more about my work and projects!

Feel free to explore my repositories and reach out for collaborations or discussions!

agents-and-networks-in-python's People

Contributors

wang-boyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

agents-and-networks-in-python's Issues

message

Hi. I am a student at the University of Hradec Krรกlovรฉ. Can I try to extend your model to track population evacuation? Or change the map?

Attempting to run causes an exception

I can run test_environment.py successfully:

% python3 test_environment.py
>>> Development environment passes all tests!

But then this happens:

% python3 src/visualization/run.py
2022-02-08 14:45:47,177 - server - INFO - <module> - Entered module: server
Traceback (most recent call last):
  File "src/visualization/run.py", line 3, in <module>
    from server import server
  File "/Users/jharrison/code/mesa/gmu-social-in-python/src/visualization/server.py", line 84, in <module>
    server = ModularServer(
  File "/Users/jharrison/code/mesa/mesa-geo/examples/GeoSIR/src/mesa-geo/mesa_geo/visualization/ModularVisualization.py", line 276, in __init__
    self.reset_model()
  File "/Users/jharrison/code/mesa/mesa-geo/examples/GeoSIR/src/mesa-geo/mesa_geo/visualization/ModularVisualization.py", line 302, in reset_model
    self.model = self.model_cls(**model_params)
  File "/Users/jharrison/code/mesa/gmu-social-in-python/src/model/gmu_social.py", line 78, in __init__
    self.__load_buildings_from_file(gmu_buildings_file, crs=crs)
  File "/Users/jharrison/code/mesa/gmu-social-in-python/src/model/gmu_social.py", line 121, in __load_buildings_from_file
    buildings_df["centroid"] = [(x, y) for x, y in zip(buildings_df.centroid.x, buildings_df.centroid.y)]
  File "/usr/local/anaconda3/lib/python3.8/site-packages/geopandas/geoseries.py", line 262, in x
    return _delegate_property("x", self)
  File "/usr/local/anaconda3/lib/python3.8/site-packages/geopandas/base.py", line 66, in _delegate_property
    data = getattr(a_this, op)
  File "/usr/local/anaconda3/lib/python3.8/site-packages/geopandas/array.py", line 882, in x
    return vectorized.get_x(self.data)
  File "/usr/local/anaconda3/lib/python3.8/site-packages/geopandas/_vectorized.py", line 910, in get_x
    return _unary_op("x", data, null_value=np.nan)
  File "/usr/local/anaconda3/lib/python3.8/site-packages/geopandas/_vectorized.py", line 461, in _unary_op
    data = [getattr(geom, op, null_value) for geom in left]
  File "/usr/local/anaconda3/lib/python3.8/site-packages/geopandas/_vectorized.py", line 461, in <listcomp>
    data = [getattr(geom, op, null_value) for geom in left]
  File "/usr/local/anaconda3/lib/python3.8/site-packages/shapely/geometry/point.py", line 66, in x
    return self.coords[0][0]
  File "/usr/local/anaconda3/lib/python3.8/site-packages/shapely/coords.py", line 85, in __getitem__
    raise IndexError("index out of range")
IndexError: index out of range

Do you have any suggestions?

Update for Mesa-Geo `v0.4.0`

Update requirements.txt file to Mesa-Geo v0.4.0 instead of pointing to its source code repo at GitHub.

Do this after v0.4.0 is uploaded to PyPI.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.