From 13014274282ded9c3cbbba3fb156ad5f11fb3edd Mon Sep 17 00:00:00 2001 From: Luis Barroso-Luque Date: Mon, 11 Nov 2024 11:44:04 -0800 Subject: [PATCH] sort file paths (#904) --- src/fairchem/core/datasets/base_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fairchem/core/datasets/base_dataset.py b/src/fairchem/core/datasets/base_dataset.py index fd0aca5a1..13e07749d 100644 --- a/src/fairchem/core/datasets/base_dataset.py +++ b/src/fairchem/core/datasets/base_dataset.py @@ -58,7 +58,7 @@ def __init__(self, config: dict): if isinstance(config["src"], str): self.paths = [Path(self.config["src"])] else: - self.paths = tuple(Path(path) for path in config["src"]) + self.paths = tuple(Path(path) for path in sorted(config["src"])) self.lin_ref = None if self.config.get("lin_ref", False):