Skip to content

Commit 0447b1b

Browse files
authored
Merge pull request #88 from SciML/AlCap23-patch-sindy
Check if eq is present
2 parents c819f4a + 3148323 commit 0447b1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sindy/results.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ function derive_parameterized_eqs(Ξ::AbstractArray{T, 2}, b::Basis, sparsity::I
8484
cnt += 1
8585
end
8686
end
87-
push!(b_, eq)
87+
if !isnothing(eq)
88+
push!(b_, eq)
89+
end
8890
end
8991
b_, p_
9092
end

0 commit comments

Comments
 (0)