-
Notifications
You must be signed in to change notification settings - Fork 230
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
dsl: Add ArgProvider inheritance to AbstractSymbol #2482
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2482 +/- ##
==========================================
- Coverage 87.26% 87.26% -0.01%
==========================================
Files 238 238
Lines 45278 45271 -7
Branches 4022 4022
==========================================
- Hits 39512 39505 -7
Misses 5085 5085
Partials 681 681 ☔ View full report in Codecov by Sentry. |
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.
What issue is this for?
devito/types/basic.py
Outdated
@@ -549,7 +549,7 @@ def __new__(cls, *args, **kwargs): | |||
__hash__ = Uncached.__hash__ | |||
|
|||
|
|||
class Scalar(Symbol, ArgProvider): | |||
class Scalar(Symbol): |
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.
Well that was intentional
- Scalar carry data
- Symbol don't carry data
So the second one is not an arg provider as it does not have values
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.
It's to remove the extraneous no-op methods in Thickness
. Maybe DataSymbol
should get ArgProvider
instead then?
Adds a default no-op
_arg_values
,_arg_check
etc to any subclasses ofAbstractSymbol
.