From 2b63f1c5aae12197f8bbe042197fc849e2df4c15 Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Fri, 21 Dec 2018 08:11:06 +0100
Subject: [PATCH] Close the shading model after applying it

---
 src/imcflibs/imagej/shading.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/imcflibs/imagej/shading.py b/src/imcflibs/imagej/shading.py
index 27d835a..5e83f52 100644
--- a/src/imcflibs/imagej/shading.py
+++ b/src/imcflibs/imagej/shading.py
@@ -113,3 +113,4 @@ def process_folder(path, suffix, outpath, model_file, fmt):
     for orig_file in matching_files:
         in_file = os.path.join(path, orig_file)
         correct_and_project(in_file, outpath, imp, 'ALL', fmt)
+    imp.close()
-- 
GitLab