Skip to content

Commit 4b73da7

Browse files
committed
[squash] json.dumps for the logging
1 parent 0cf252f commit 4b73da7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/sedpack/io/dataset_base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ def __init__(
314314
]
315315

316316
kept_metadata: set[str] = {
317-
str(s.custom_metadata) for s in shard_list
317+
json.dumps(
318+
s.custom_metadata,
319+
sort_keys=True,
320+
) for s in shard_list
318321
}
319322
self.dataset.logger.info(
320323
"Filtered shards with custom metadata: %s from split: %s",

0 commit comments

Comments
 (0)