Skip to content

Commit 1401b34

Browse files
authored
support list for System indexing (#264)
1 parent 53c1af0 commit 1401b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpdata/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def __str__(self):
162162

163163
def __getitem__(self, key):
164164
"""Returns proerty stored in System by key or by idx"""
165-
if isinstance(key, (int, slice)):
165+
if isinstance(key, (int, slice, list)):
166166
return self.sub_system(key)
167167
return self.data[key]
168168

0 commit comments

Comments
 (0)