Skip to content

Commit

Permalink
Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Sep 26, 2024
1 parent 0bfe1dd commit a72f90f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/r.in.wms/wms_drv.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,9 +736,7 @@ def _findTileMats(self, tile_mats, region, bbox):

best_diff = best_scale_den - scale_den
mat_diff = mat_scale_den - scale_den
if (best_diff < mat_diff < 0) or (
best_diff > mat_diff and best_diff > 0
):
if (best_diff < mat_diff < 0) or (best_diff > mat_diff and best_diff > 0):
best_t_mat = t_mat
best_scale_den = mat_scale_den

Expand Down Expand Up @@ -1020,9 +1018,7 @@ def _parseTilePattern(self, group_t_patts, bbox, region):
best_diff = best_res - res[comp_res]
tile_diff = t_res[comp_res] - res[comp_res]

if (best_diff < tile_diff < 0) or (
best_diff > tile_diff and best_diff > 0
):
if (best_diff < tile_diff < 0) or (best_diff > tile_diff and best_diff > 0):
best_res = t_res[comp_res]
best_patt = pattern

Expand Down

0 comments on commit a72f90f

Please sign in to comment.