Skip to content

Commit

Permalink
Fix Scoping.__init__ when initializing from ids which are not a list.
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Feb 27, 2023
1 parent d2a2f00 commit b703d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansys/dpf/core/scoping.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ def __init__(self, scoping=None, server=None, ids=None, location=None):
self._internal_obj = self._api.scoping_new()

# step5: handle specific calls to set attributes
if ids:
if ids is not None:
self.ids = ids
if location:
if location is not None:
self.location = location

def _count(self):
Expand Down

0 comments on commit b703d7c

Please sign in to comment.