From b8567605cfd2897b7ed0f67ec123133effe4a319 Mon Sep 17 00:00:00 2001 From: mzouink Date: Mon, 5 Aug 2024 21:16:12 +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 aea82fa94..941906285 100644 --- a/dacapo/store/local_weights_store.py +++ b/dacapo/store/local_weights_store.py @@ -142,7 +142,9 @@ def retrieve_weights(self, run: str, iteration: int) -> Weights: weights_name = self.__get_weights_dir(run) / "iterations" / str(iteration) - weights: Weights = torch.load(weights_name, map_location="cpu", weights_only=False) + weights: Weights = torch.load( + weights_name, map_location="cpu", weights_only=False + ) if not isinstance(weights, Weights): # backwards compatibility weights = Weights(weights["model"], weights["optimizer"])