Browse Source

linted last commit

master
Holger Frey 6 years ago
parent
commit
d7e63e29ed
  1. 4
      mtor/dataproc.py
  2. 2
      mtor/imageproc.py

4
mtor/dataproc.py

@ -127,8 +127,8 @@ def find_guard_threshold(data_frame, parameters): @@ -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)")

2
mtor/imageproc.py

@ -57,7 +57,7 @@ def safe_cut(tif_array, parameters): @@ -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

Loading…
Cancel
Save