Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions PyExpUtils/collection/Collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ def __init__(self, config: Dict[str, Sampler | Ignore] = {}, idx: int | None = N
self._idxs = set[int]()
self._keys = set[str]()

# if an idx is provided add it to the cache
if idx is not None:
self._idxs.add(idx)

# -------------
# -- Context --
# -------------
Expand Down