Skip to content

Commit

Permalink
Format Python code with psf/black push (#87)
Browse files Browse the repository at this point in the history
There appear to be some python formatting errors in
658bb6d. This pull request
uses the [psf/black](https://github.com/psf/black) formatter to fix
these issues.
  • Loading branch information
rhoadesScholar authored Feb 14, 2024
2 parents 6e4c368 + f762d03 commit c7625dd
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 @@ -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"]
Expand Down

0 comments on commit c7625dd

Please sign in to comment.