-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
don't collect observed ArraySymbolics
#81
base: master
Are you sure you want to change the base?
Conversation
If `ArraySymbolic` `is_observed` forward directly to `observed` instead of collecting first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just needs a minor change and some tests. Thanks for the PR
I removed the tuple stuff and added some tests to ensure that |
I just ran into some edge case that is tested in SciMLBase downstream in my own work. It will be broken by the changes in this PR. Could you refactor the check in |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #81 +/- ##
===========================================
- Coverage 86.15% 27.79% -58.37%
===========================================
Files 11 11
Lines 513 518 +5
===========================================
- Hits 442 144 -298
- Misses 71 374 +303
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I guess you're referring to
My PR tries to apply the same behavior to SymbolicIndexingInterface.jl/src/state_indexing.jl Lines 147 to 170 in c9c7b6c
So I am not sure what happens in your edge cases, but maybe |
The problem is that if you have an I'll check this case with your PR shortly, since it might just not break inference in which case it's mostly fine. |
If
is_observed
returns true forArraySymbolic
, forward directly toobserved
instead of collecting first.Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.