diff --git a/tiledb/fragment.py b/tiledb/fragment.py index 04be4021ad..09c96c9954 100644 --- a/tiledb/fragment.py +++ b/tiledb/fragment.py @@ -188,6 +188,9 @@ def __init__(self, fragments): self._fragments = fragments self._index = 0 + def __iter__(self): + return self + def __next__(self): if self._index < len(self._fragments): fi = FragmentInfo(self._fragments, self._index)