Closed vitusbenson closed 11 months ago
Updated the Issue, appreciate any help from more advanced Julia users :-)
https://github.com/SciML/SciMLBase.jl/blob/master/src/SciMLBase.jl#L365
DiffEqNoiseProcess is an abstract array which must trigger something in PyCall to want to transform it into an array. @stevengj is there some way to tell it to use the non-array dispatch to make it build a generic object in Python matching the NoiseProcess?
Abstract noice processes work on v2.0
from diffeqpy import de
D = 1.0
W = de.WienerProcess(0.0,2*D)
def f(u,p,t):
return 1.01*u
def g(u,p,t):
return 0.87*u
u0 = 0.5
tspan = (0.0,1.0)
prob = de.SDEProblem(f,g,u0,tspan, noise=W)
sol = de.solve(prob)
I am changing the issue. It seems to me that "NoiseGrid" and "NoiseFunction from https://diffeq.sciml.ai/stable/features/noise_process/#noise_process do not work in diffeqpy.
MWE:
throws the error:
This is using Julia 1.5.4, DifferentialEquations v6.18.0, PyCall v1.92.5, Python 3.9.7, pyjulia 0.5.7, diffeqpy 1.2.0.