Skip to content

Conversation

@SebastianM-C
Copy link
Member

Symbolics@5fe7a2d6 added a search_variables! method for Equation that searches both LHS and RHS. This broke equation_dependencies which relies on finding only RHS dependencies.

The original MTK behavior (from 2020, commit 3160770) explicitly only examined eq.rhs. This fix restores that behavior by passing eq.rhs directly instead of relying on the generic Equation method.

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.

@AayushSabharwal
Copy link
Member

Rebasing should fix tests.

@AayushSabharwal
Copy link
Member

This breaks the dependency analysis for jumps

Symbolics@5fe7a2d6 added a `search_variables!` method for `Equation`
that searches both LHS and RHS. This broke `equation_dependencies`
which relies on finding only RHS dependencies.

The original MTK behavior (from 2020, commit 3160770) explicitly
only examined `eq.rhs`. This fix restores that behavior by passing
`eq.rhs` directly instead of relying on the generic `Equation` method.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@SebastianM-C
Copy link
Member Author

I updated the fix to only use .rhs on Equations

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