Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mastrof committed Dec 21, 2023
1 parent 92fd47d commit 499cc2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bodies/spheres.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export HyperSphere, contact, is_encounter
# dispatch hides call to Point
HyperSphere(center::SVector{D}, radius::Real) where D = HyperSphere(Point(Float64.(center)), Float64(radius))

@inline position(a::HyperSphere{D}) where D = SVector{D}(a.center)
@inline Base.position(a::HyperSphere{D}) where D = SVector{D}(a.center)
#@inline radius(a::AbstractMicrobe) = a.radius
@inline radius(a::HyperSphere) = a.r
@inline contact(a,b,model) = distance(a,b,model) radius(a) + radius(b)
Expand Down
4 changes: 2 additions & 2 deletions src/chemotaxis/brumley.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The model is optimized for simulation of marine bacteria and accounts
for the presence of (gaussian) sensing noise in the chemotactic pathway.
Default parameters:
- `motility = RunReverseFlick(speed_forward = [46.5])`
- `motility = RunReverseFlick(speed = [46.5])`
- `turn_rate = 2.22` Hz → '1/τ₀'
- `state = 0.0` → 'S'
- `rotational_diffusivity = 0.035` rad²/s
Expand All @@ -19,7 +19,7 @@ Default parameters:
"""
@agent struct Brumley{D}(ContinuousAgent{D,Float64}) <: AbstractMicrobe{D}
speed::Float64
motility = RunReverseFlick(speed_forward = [46.5])
motility = RunReverseFlick(speed = [46.5])
turn_rate::Float64 = 1 / 0.45
rotational_diffusivity::Float64 = 0.035
radius::Float64 = 0.5
Expand Down
2 changes: 1 addition & 1 deletion src/chemotaxis/xie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tuned through a `chemotactic_precision` factor inspired by
'Brumley et al. (2019) PNAS' (defaults to 0, i.e. no noise).
Default parameters:
- `motility = RunReverseFlick(speed_forward = [46.5])`
- `motility = RunReverseFlick(speed = [46.5])`
- `turn_rate_forward = 2.3` Hz
- `turn_rate_backward = 1.9` Hz
- `state = 0.0` s
Expand Down

0 comments on commit 499cc2c

Please sign in to comment.