Skip to content

Commit

Permalink
fixup! fix: fix remake for symbolic indexing, add tests for remake
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Mar 7, 2024
1 parent c1697ab commit 2b7079a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/remake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ function updated_u0(prob, u0, p)
if length(u0) == length(state_values(prob))
return u0
else
throw(ArgumentError("Invalid value for u0: $u0. Must be an array of appropriate length or a symbolic map"))
throw(ArgumentError("Invalid value for u0: $u0. New length ($length(u0)) does not match length of current problem ($(length(state_values(prob))))"))

Check warning on line 359 in src/remake.jl

View check run for this annotation

Codecov / codecov/patch

src/remake.jl#L359

Added line #L359 was not covered by tests
end
else
throw(ArgumentError("Invalid value for u0: $u0. Must be an array of appropriate length or a symbolic map"))
return u0

Check warning on line 362 in src/remake.jl

View check run for this annotation

Codecov / codecov/patch

src/remake.jl#L362

Added line #L362 was not covered by tests
end
if !has_sys(prob.f)
throw(ArgumentError("This problem does not support symbolic maps with" *

Check warning on line 365 in src/remake.jl

View check run for this annotation

Codecov / codecov/patch

src/remake.jl#L365

Added line #L365 was not covered by tests
Expand Down

0 comments on commit 2b7079a

Please sign in to comment.