Skip to content

Commit

Permalink
r.vif: correct black issues
Browse files Browse the repository at this point in the history
correct black and flake8 style issues
  • Loading branch information
ecodiv committed Sep 17, 2023
1 parent c9a8d69 commit 1833ab1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/raster/r.vif/r.vif.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,12 @@


# Functions
def prRed(skk): print("\033[91m {}\033[00m" .format(skk))
def prRed(skk):
print("\033[91m {}\033[00m".format(skk))


def prGreen(skk): print("\033[92m {}\033[00m" .format(skk))
def prGreen(skk):
print("\033[92m {}\033[00m".format(skk))


CLEAN_RAST = []
Expand Down Expand Up @@ -358,8 +360,9 @@ def main(options, flags):
y = p[:, k]
except IndexError as e:
prRed(f"An error occurred: {str(e)}")
prGreen("Tip: check if all input rasters have values"
" within the computation region.")
prGreen(
"Tip: check if all input rasters have values within the computation region."
)
x = np.delete(p, k, axis=1)
vifstat = compute_vif(x, y)

Expand Down

0 comments on commit 1833ab1

Please sign in to comment.