Skip to content

Commit 4053835

Browse files
committed
Update: add tracking identifier
1 parent da3ee1c commit 4053835

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kaleidoscope/operators/randomizeop.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ def run(self, source: Dataset) -> Dataset: # noqa: D102
100100
coords=source.coords,
101101
attrs=source.attrs,
102102
)
103+
target.attrs["tracking_id"] = (
104+
f"{source_id}:{self._args.selector :04d}"
105+
)
103106
config: dict[str : dict[str:Any]] = self.config.get(
104107
self._args.source_type, {}
105108
)

0 commit comments

Comments
 (0)