From 7bf77cbccb2c441368334a587ca3e300083493fb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Dec 2024 03:08:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- deepmd/pt/utils/dataloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepmd/pt/utils/dataloader.py b/deepmd/pt/utils/dataloader.py index 032fa34b73..0b439a84e9 100644 --- a/deepmd/pt/utils/dataloader.py +++ b/deepmd/pt/utils/dataloader.py @@ -102,7 +102,7 @@ def construct_dataset(system): with Pool(os.cpu_count()) as pool: self.systems = pool.map(construct_dataset, systems) else: - self.systems = [None] * len(systems) # type: ignore + self.systems = [None] * len(systems) # type: ignore if dist.is_initialized(): dist.broadcast_object_list(self.systems) assert self.systems[-1] is not None