Skip to content

Commit

Permalink
🎨 Format Python code with psf/black
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Aug 5, 2024
1 parent a7200c2 commit 961ced8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dacapo/store/local_weights_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=True)
weights: Weights = torch.load(
weights_name, map_location="cpu", weights_only=True
)
if not isinstance(weights, Weights):
# backwards compatibility
weights = Weights(weights["model"], weights["optimizer"])
Expand Down

0 comments on commit 961ced8

Please sign in to comment.