Commit 2de80ce
Fix noise kwarg propagation for SDEProblem(f::SDESystem)
When creating an SDEProblem from an SDESystem, the noise keyword
argument was being ignored. The constructor always calculated noise
and noise_rate_prototype from the system, overwriting any user-provided
values.
This fix checks if the user has already provided noise or
noise_rate_prototype in kwargs before calculating defaults from
the system. This allows users to specify custom noise processes
for their SDEProblems.
Fixes #3664
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 865e339 commit 2de80ce
2 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
81 | 94 | | |
82 | 95 | | |
83 | 96 | | |
| |||
0 commit comments