-
Notifications
You must be signed in to change notification settings - Fork 12
maint: remove now deprecated MockPropertyFieldsContainer
#935
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #935 +/- ##
==========================================
- Coverage 85.12% 83.05% -2.07%
==========================================
Files 52 52
Lines 5224 5224
==========================================
- Hits 4447 4339 -108
- Misses 777 885 +108 🚀 New features to boost your workflow:
|
| label_space[label_name] = int(value) | ||
| fields = self._fc.get_fields(label_space=label_space) | ||
| if isinstance(self._fc, dpf.FieldsContainer): | ||
| fields = self._fc.get_fields(label_space=label_space) |
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.
@moe-ad Doesn't the FieldsContainer inherit a get_entries method from the Collection class?
If not, we should add it so we can have the same API and not need such conditional tests.
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 problem is that FieldsContainer subclasses CollectionBase directly (a superclass of Collection) where get_entries isn't available. But _get_entries is available though, but I don't think we should be calling that directly.
|
I'll merge |
This change is needed due to ansys/pydpf-core#2816. ansys/pydpf-core#2852 also needs to be merged before this.