Skip to content
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

fix: fix usage of ReverseDiff in parameters #1078

Merged
merged 5 commits into from
Sep 4, 2024

Conversation

AayushSabharwal
Copy link
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@ChrisRackauckas
Copy link
Member

Needs a test.

Co-authored-by: Christopher Rackauckas <accounts@chrisrackauckas.com>
if SciMLStructures.isscimlstructure(p)
_p = SciMLStructures.canonicalize(SciMLStructures.Tunable(), p)[1]
if _p != p
return promote_u0(u0, _p, t0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't you need to restructure or replace! with this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we're not changing p. canonicalize is only used to get the tunables array, since that's what we want to dispatch off of.

@ChrisRackauckas
Copy link
Member

Tests failed

@ChrisRackauckas
Copy link
Member

@ChrisRackauckas ChrisRackauckas merged commit 2627f2b into SciML:master Sep 4, 2024
34 of 38 checks passed
@AayushSabharwal AayushSabharwal deleted the as/reversediff branch September 4, 2024 11:00
@AayushSabharwal
Copy link
Member Author

That is SciML/SciMLBase.jl#780 which hasn't been tagged yet, so isn't used by CI. It's why I opened that PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants