JuliaDynamics / Agents.jl

Agent-based modeling framework in Julia
https://juliadynamics.github.io/Agents.jl/stable/
MIT License
729 stars 117 forks source link

Use API functions to access model fields #847

Closed Tortar closed 1 year ago

Tortar commented 1 year ago

This is part of a TODO described in the file model_abstract.jl. This still needs to be done for :space and :agents. These are a bit more difficult since the methods to access them are not exported and I get some errors substituing model.space to abmspace(model) in src, don't know why at the moment. Also probably we should spare the changelog from the change

edit: everything works, I also exported abmspace

codecov-commenter commented 1 year ago

Codecov Report

Merging #847 (d5a4161) into main (7bc8cea) will not change coverage. The diff coverage is 73.80%.

@@           Coverage Diff           @@
##             main     #847   +/-   ##
=======================================
  Coverage   70.75%   70.75%           
=======================================
  Files          42       42           
  Lines        2773     2773           
=======================================
  Hits         1962     1962           
  Misses        811      811           
Files Changed Coverage Δ
...AgentsOSMVisualizations/AgentsOSMVisualizations.jl 0.00% <0.00%> (ø)
ext/AgentsVisualizations/src/abmplot.jl 0.00% <0.00%> (ø)
ext/AgentsVisualizations/src/daisyworld_def.jl 0.00% <0.00%> (ø)
ext/AgentsVisualizations/src/inspection.jl 0.00% <ø> (ø)
ext/AgentsVisualizations/src/lifting.jl 0.00% <0.00%> (ø)
src/deprecations.jl 3.57% <0.00%> (ø)
src/simulations/step.jl 100.00% <ø> (ø)
src/spaces/grid_multi.jl 82.60% <57.14%> (ø)
src/simulations/sample.jl 97.05% <66.66%> (ø)
src/spaces/discrete.jl 97.61% <75.00%> (ø)
... and 12 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more