Skip to content

Commit

Permalink
don't need to specify Any type
Browse files Browse the repository at this point in the history
  • Loading branch information
mastrof committed Oct 23, 2024
1 parent 04670b8 commit 91e46d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/chemotaxis/celani.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ end
# to initialize the markovian variables at steady state
# depending on the concentration field at the agent position
function Agents.add_agent!(
pos::Any,
pos,
A::Type{<:Celani{D}},
model::AgentBasedModel,
properties...;
Expand All @@ -74,7 +74,7 @@ function Agents.add_agent!(
end

function Agents.add_agent!(
pos::Any,
pos,
A::Type{Celani{D,N}},
model::AgentBasedModel,
properties...;
Expand Down
4 changes: 2 additions & 2 deletions src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ end


function Agents.add_agent!(
pos::Any,
pos,
A::Type{<:AbstractMicrobe{D}},
model::AgentBasedModel,
properties...;
Expand Down Expand Up @@ -84,7 +84,7 @@ otherwise default values from the constructor will be used.
If unspecified, a random velocity vector and a random speed are generated.
"""
function Agents.add_agent!(
pos::Any,
pos,
A::Type{<:AbstractMicrobe{D,N}},
model::AgentBasedModel,
properties...;
Expand Down

0 comments on commit 91e46d0

Please sign in to comment.