patrick-kidger / patrick-kidger/diffrax

Use values computed in ODETerms inside of SaveAt

Open
#476 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.