Skip to content

Commit

Permalink
Fix Code Quality check
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Nov 19, 2024
1 parent f4be6cd commit 6224cb3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ansys/dpf/core/collection_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,13 +438,11 @@ def __getitem__(self, index: int | slice):
# For FieldsContainers, ScopingsContainers and MeshesContainers
# because they have dedicated APIs
func = out_collection._add_entry
[
for i in indices:
func(
label_space=self.get_label_space(index=i),
entry=self._get_entries(label_space_or_index=i)
)
for i in indices
]
return out_collection
self_len = len(self)
if index < 0:
Expand Down

0 comments on commit 6224cb3

Please sign in to comment.