# Data Collection Issue With Julia Agents

**URL:** <https://discourse.julialang.org/t/data-collection-issue-with-julia-agents/66458>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 16, 2021, 2:19am UTC](https://discourse.julialang.org/t/data-collection-issue-with-julia-agents/66458 "2021-08-16T02:19:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fbanning](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fbanning/32/14972_2.png) [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Post date:** [August 16, 2021, 8:37am UTC](https://discourse.julialang.org/t/data-collection-issue-with-julia-agents/66458/2 "2021-08-16T08:37:25Z")

</div>

From what you’ve posted it seems as if you only create your graph once and never change it. Do you ever update `model.Social` during your `model_step!` function?

Of course we don’t know what your use case/model purpose is, so this is a bit of a wild guess but are you sure you want to use a `GridSpace` and then create a graph from the present agents? Perhaps look at our [SIR example](https://juliadynamics.github.io/Agents.jl/stable/examples/sir/) to see how you can directly use a `GraphSpace` instead.

* * *

Please note that reading code on screenshots is a bit unpleasant. You might want to consider using backticks ```` to fence your code and allow for nice formatting like this:

```julia
using Agents
model = create_model(; dims=(L,L), density)
# and so on

```

---

_[View the full topic](https://discourse.julialang.org/t/data-collection-issue-with-julia-agents/66458)._
