Skip to content

Conversation

@AayushSabharwal
Copy link
Member

@AayushSabharwal AayushSabharwal commented Oct 30, 2024

This is in preparation for moving OverrideInit and CheckInit to SciMLBase

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

This is breaking to downstream though if the CheckInit and OverrideInit isn't also changed?

@AayushSabharwal
Copy link
Member Author

I forgot to overload getproperty. That should stop it from being breaking.

@AayushSabharwal AayushSabharwal force-pushed the as/initdata branch 2 times, most recently from a067798 to b4cce5b Compare October 30, 2024 16:24
The existing syntax is `initializeprob, ..., nlprob`. Trying to add
`initialization_data` in the middle breaks the non-kwarg-only method.
Putting it at the end fixes this issue. Anything old still has the order
it relies on, with `initialization_data` defaulting to `nothing`, and
anything new would just have to provide the redundant kwargs if it needs
to specify `initialization_data`.
@ChrisRackauckas ChrisRackauckas merged commit 77fff1e into SciML:master Nov 4, 2024
30 of 51 checks passed
@AayushSabharwal AayushSabharwal deleted the as/initdata branch November 4, 2024 12:52
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