Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
  • Loading branch information
Jerry-Jinfeng-Guo committed Oct 18, 2024
1 parent 22bb2a4 commit 057b95d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/power_grid_model/core/power_grid_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,11 +466,6 @@ def _filter_attributes(self, attributes):
for key in keys_to_remove:
del attributes[key]

def _filter_with_option(self):
if self._data_filter is ComponentAttributeFilterOptions.relevant:
for attributes in self._data.values():
self._filter_attributes(attributes)

def _filter_with_mapping(self):
for component_type, attributes in self._data.items():
if component_type in self._data_filter:
Expand All @@ -479,9 +474,7 @@ def _filter_with_mapping(self):
self._filter_attributes(attributes)

def _post_filtering(self):
if isinstance(self._data_filter, ComponentAttributeFilterOptions):
self._filter_with_option()
elif isinstance(self._data_filter, dict):
if isinstance(self._data_filter, dict):
self._filter_with_mapping()


Expand Down

0 comments on commit 057b95d

Please sign in to comment.