-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing EnsembleSolution
elements
#105
Comments
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to use diffeqpy to simulate some trajectories of the geometric Brownian motion but I'm having some issues accessing the elements of the solution.
My code is the following:
In Julia, I would do simply
res[1]
to get the first path. I could then also dores[1](x)
to get the value of that path at some arbitraryx
in the domain of the solution. Can I do this in Python somehow?When I try
res[0]
in Python, I get an error:I know that I could bypass this partly by using
saveat=np.arange(t0, t1 + dt, dt)
, for example, in the call tode.solve
, but that requires knowingx
in advance.The text was updated successfully, but these errors were encountered: