patrick-kidger / patrick-kidger/diffrax
Use values computed in ODETerms inside of SaveAt
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.1k
- Forks
- 189
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 1
Description
Hi, I would like to save some values that are computed inside of my ODETerms. Is it possible to have the term output other things than the differential equations parameters ? For example, if my term looks like this.
def terms(t,y,args):
y_dot = y + args
args_changed = args / y_dot
return y_dot
Would it be possible to save args_changed and use it inside of SaveAt? (This is a dummy example but it captures the idea)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names ODETerms and SaveAt but does not identify files or tests. Start by tracing how values returned by ODETerms reach SaveAt, then determine whether an additional output path can be specified without changing differential-equation parameters. Done should include a clear supported interface and coverage for the dummy args_changed example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100