Skip to content

Commit

Permalink
Remove ValidPos (#96)
Browse files Browse the repository at this point in the history
* replace `ValidPos` with `Any` following release of Agents v6.1.10

* bump patch version

* don't need to specify `Any` type
  • Loading branch information
mastrof authored Oct 23, 2024
1 parent ac69dc8 commit 39ba9e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MicrobeAgents"
uuid = "b17a4bac-8667-4a2d-84f7-1883ae0b8dbb"
authors = ["Riccardo Foffi <[email protected]> and contributors"]
version = "0.5.0"
version = "0.5.1"

[deps]
Agents = "46ada45e-f475-11e8-01d0-f70cc89e6671"
Expand Down
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::Agents.ValidPos,
pos,
A::Type{<:Celani{D}},
model::AgentBasedModel,
properties...;
Expand All @@ -74,7 +74,7 @@ function Agents.add_agent!(
end

function Agents.add_agent!(
pos::Agents.ValidPos,
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::Agents.ValidPos,
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::Agents.ValidPos,
pos,
A::Type{<:AbstractMicrobe{D,N}},
model::AgentBasedModel,
properties...;
Expand Down

2 comments on commit 39ba9e6

@mastrof
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/118003

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.1 -m "<description of version>" 39ba9e66fb50b57e5c13cc649013a7a042f34c76
git push origin v0.5.1

Please sign in to comment.