From d7e63e29edccf3e43c4da69c2144d4df7041f15d Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Fri, 3 May 2019 09:43:37 +0200 Subject: [PATCH] linted last commit --- mtor/dataproc.py | 4 ++-- mtor/imageproc.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mtor/dataproc.py b/mtor/dataproc.py index f52b845..54d592c 100644 --- a/mtor/dataproc.py +++ b/mtor/dataproc.py @@ -127,8 +127,8 @@ def find_guard_threshold(data_frame, parameters): guard_counts = numpy.concatenate([[0], guard_data[0]]).astype( numpy.float16 ) - guard_edges = guard_data[1] - + guard_edges = guard_data[1] + pyplot.clf() seaborn.lineplot(x=guard_edges, y=guard_counts) pyplot.title("Histogram of Guard Avarages (not filtered)") diff --git a/mtor/imageproc.py b/mtor/imageproc.py index d4744d8..511c05f 100644 --- a/mtor/imageproc.py +++ b/mtor/imageproc.py @@ -57,7 +57,7 @@ def safe_cut(tif_array, parameters): with cut_path.open("wb") as outhandle: cut_array = tif_array.data[top:bottom, left:right] cut_img = Image.fromarray(cut_array) - cut_img.save(outhandle, compression='tiff_lzw') + cut_img.save(outhandle, compression="tiff_lzw") del cut_img