Skip to content

Commit

Permalink
address pre-commit violations
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Jul 2, 2024
1 parent 8dfe07c commit 462b8d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions clisops/core/regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def weights_cache_flush(

# Find and delete/report weight files, grid files and the json files containing the metadata
if os.path.isdir(weights_dir):
flist_weights = glob(f"{weights_dir}/weights_{'?'*32}_{'?'*32}_*.nc")
flist_meta = glob(f"{weights_dir}/weights_{'?'*32}_{'?'*32}_*.json")
flist_grids = glob(f"{weights_dir}/grid_{'?'*32}.nc")
flist_weights = glob(f"{weights_dir}/weights_{'?' * 32}_{'?' * 32}_*.nc")
flist_meta = glob(f"{weights_dir}/weights_{'?' * 32}_{'?' * 32}_*.json")
flist_grids = glob(f"{weights_dir}/grid_{'?' * 32}.nc")
if flist_weights != [] or flist_grids != [] or flist_meta != []:
for f in flist_meta + flist_weights + flist_grids:
if dryrun or verbose:
Expand Down
2 changes: 1 addition & 1 deletion clisops/ops/regrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _resolve_params(self, **params) -> None:
weights = self._get_weights(grid_in=grid_in, grid_out=grid_out, method=method)
t_end = dt.now()
logger.info(
f"Computed/Retrieved weights in {(t_end-t_start).total_seconds()} seconds."
f"Computed/Retrieved weights in {(t_end - t_start).total_seconds()} seconds."
)

# Define params dict
Expand Down

0 comments on commit 462b8d6

Please sign in to comment.