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

refactor: avoid substitute warning when not needed #2869

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

SebastianM-C
Copy link
Contributor

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

940d637 added a warning for substitute in the case where the system has events, but the condition is too broad and the warning appears even if there are no events in the system. This PR adds additional checks to make sure that the warning only shows up only if the number of events is > 0.

@ChrisRackauckas ChrisRackauckas merged commit 94cd86b into SciML:master Jul 17, 2024
21 of 22 checks passed
@SebastianM-C SebastianM-C deleted the smc/subs branch July 17, 2024 23:57
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