GithubHelp home page GithubHelp logo

juliadynamics / agentsexamplezoo.jl Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 10.0 24.52 MB

Examples written with Agents.jl

Home Page: https://juliadynamics.github.io/AgentsExampleZoo.jl/dev/

License: MIT License

Julia 100.00%
agent-based-modeling julia

agentsexamplezoo.jl's Introduction

JuliaDynamics

This repository serves the following purposes:

  • Contains the source code for the JuliaDynamics website in the src and build folders.
  • Hosts the website via GitHub-pages and Jekyll.
  • Contains tutorials for all packages of JuliaDynamics in the tutorials folder.
  • Contains video resources for all packages of JuliaDynamics in the videos folder.

The website was modeled after the website of QuantumOptics.jl and most code that builds the site was re-used from the repository of QuantumOptics.jl (with permission).


To build locally do follow the instructions from here: https://jekyllrb.com/docs/

(install Jekyll and then do bundle exec jekyll serve which serves by default to http://localhost:4000)

agentsexamplezoo.jl's People

Contributors

aayushsabharwal avatar datseris avatar digital-carver avatar looseterrifyingspacemonkey avatar maxkerney avatar michielstock avatar tatakof avatar tortar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

agentsexamplezoo.jl's Issues

Videos and line plots not being displayed in Social Distancing example

In Chrome, Firefox, and Safari on macOS 12.2.1 some of the videos and both line plots do not show in this example. Below is a screen shot (Safari) when scrolled to the end of the example. It used to have two plots at the end of the example, and the videos all were displayed, but now these are missing. Three plots/videos of agents as balls in 2D space are being displayed: socialdist1.mp4, socialdist2.mp4, and socialdist3.mp4.

image

Maze solver example throws an error

Running the maze.jl file in the docs/examples directory gives the following error:

ERROR: LoadError: promotion of types Int64 and FixedPointNumbers.N0f8 failed to change any arguments
Stacktrace:
  [1] error(::String, ::String, ::String)
    @ Base ./error.jl:42
  [2] sametype_error(input::Tuple{Int64, FixedPointNumbers.N0f8})
    @ Base ./promotion.jl:374
  [3] not_sametype(x::Tuple{Int64, FixedPointNumbers.N0f8}, y::Tuple{Int64, FixedPointNumbers.N0f8})
    @ Base ./promotion.jl:368
  [4] promote
    @ ./promotion.jl:351 [inlined]
  [5] <(x::Int64, y::FixedPointNumbers.N0f8)
    @ Base ./promotion.jl:419
  [6] >(x::FixedPointNumbers.N0f8, y::Int64)
    @ Base ./operators.jl:378
  [7] (::var"#1#2")(x::ColorTypes.RGBX{FixedPointNumbers.N0f8})
    @ Main ~/Downloads/AgentsExampleZoo.jl-main/docs/examples/maze.jl:22
  [8] iterate
    @ ./generator.jl:47 [inlined]
  [9] _collect
    @ ./array.jl:744 [inlined]
 [10] collect_similar(cont::Matrix{ColorTypes.RGBX{FixedPointNumbers.N0f8}}, itr::Base.Generator{Matrix{ColorTypes.RGBX{FixedPointNumbers.N0f8}}, var"#1#2"})
    @ Base ./array.jl:653
 [11] map(f::Function, A::Matrix{ColorTypes.RGBX{FixedPointNumbers.N0f8}})
    @ Base ./abstractarray.jl:2867
 [12] initalize_model(map_url::String)
    @ Main ~/Downloads/AgentsExampleZoo.jl-main/docs/examples/maze.jl:22
 [13] top-level scope
    @ ~/Downloads/AgentsExampleZoo.jl-main/docs/examples/maze.jl:46
in expression starting at /Users/weili/Downloads/AgentsExampleZoo.jl-main/docs/examples/maze.jl:46

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

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.