Skip to content

Commit

Permalink
Merge pull request #2343 from pepijndevos/new-branch
Browse files Browse the repository at this point in the history
Change typeof(x) <: y to x isa y
  • Loading branch information
ChrisRackauckas authored Nov 2, 2023
2 parents 55941b5 + 8cb8b6f commit a0a95b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/diffeqs/sdesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ function Girsanov_transform(sys::SDESystem, u; θ0 = 1.0)
grad = Symbolics.gradient(u, states(sys))

noiseeqs = get_noiseeqs(sys)
if typeof(noiseeqs) <: Vector
if noiseeqs isa Vector
d = simplify.(-(noiseeqs .* grad) / u)
drift_correction = noiseeqs .* d
else
Expand All @@ -366,7 +366,7 @@ function Girsanov_transform(sys::SDESystem, u; θ0 = 1.0)

noiseqsθ = θ * d

if typeof(noiseeqs) <: Vector
if noiseeqs isa Vector
m = size(noiseeqs)
if m == 1
push!(noiseeqs, noiseqsθ)
Expand Down

0 comments on commit a0a95b5

Please sign in to comment.