From f762d0355027146b9eca96853f30be9dcb4da82e Mon Sep 17 00:00:00 2001 From: adjavon Date: Wed, 14 Feb 2024 18:22:07 +0000 Subject: [PATCH] :art: Format Python code with psf/black --- dacapo/store/local_weights_store.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dacapo/store/local_weights_store.py b/dacapo/store/local_weights_store.py index 19ea52872..0935c945b 100644 --- a/dacapo/store/local_weights_store.py +++ b/dacapo/store/local_weights_store.py @@ -103,7 +103,9 @@ def store_best(self, run: str, iteration: int, dataset: str, criterion: str): def retrieve_best(self, run: str, dataset: str, criterion: str) -> int: logger.info("Retrieving weights for run %s, criterion %s", run, criterion) - with (self.__get_weights_dir(run) / criterion / f"{dataset}.json").open("r") as fd: + with (self.__get_weights_dir(run) / criterion / f"{dataset}.json").open( + "r" + ) as fd: weights_info = json.load(fd) return weights_info["iteration"]