Skip to content

Commit b703d7c

Browse files
committed
Fix Scoping.__init__ when initializing from ids which are not a list.
1 parent d2a2f00 commit b703d7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansys/dpf/core/scoping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ def __init__(self, scoping=None, server=None, ids=None, location=None):
9696
self._internal_obj = self._api.scoping_new()
9797

9898
# step5: handle specific calls to set attributes
99-
if ids:
99+
if ids is not None:
100100
self.ids = ids
101-
if location:
101+
if location is not None:
102102
self.location = location
103103

104104
def _count(self):

0 commit comments

Comments
 (0)