-
-
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
feat!: indexing rework #12
Conversation
docs/src/api.md
Outdated
isindependent_variable | ||
isobserved | ||
observed | ||
istimedependent |
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.
the naming/underscore placement here seems slightly inconsistent
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.
isindependentvariable
feels unreadable to me. Maybe isindepvar
?
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.
Fixed in 9bea164
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #12 +/- ##
=========================================
+ Coverage 0.00% 1.06% +1.06%
=========================================
Files 2 5 +3
Lines 33 94 +61
=========================================
+ Hits 0 1 +1
- Misses 33 93 +60 ☔ View full report in Codecov by Sentry. |
src/SymbolicIndexingInterface.jl
Outdated
""" | ||
issymbolic(x) = issymbolic(typeof(x)) | ||
issymbolic(::Type) = NotSymbolic() | ||
issymbolic(::Type{Symbol}) = Symbolic() |
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.
Is there more possibilities than true/false
from issymbolic
?
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.
I was considering adding a SymbolicArray
trait variant, for SymArr
and AbstractArray{<:something that implements Symbolic}
but it's just as easy to check all(isequal(Symbolic()), issymbolic.(collect(sym)))
. Apart from that I think it's just true/false
- add has_static_variable function - make variable names more consistent
6f52d2b
to
1e5450b
Compare
🎉 |
Completely rework the indexing API, with tests