From f199674780b747ed6d41a4375df07059b4ae3c7e Mon Sep 17 00:00:00 2001 From: Laurent Guerard <laurent.guerard@unibas.ch> Date: Tue, 29 Apr 2025 14:55:42 +0200 Subject: [PATCH] Switch to python module approach --- 2c_fibertyping.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/2c_fibertyping.py b/2c_fibertyping.py index 8b68e71..7497a4c 100644 --- a/2c_fibertyping.py +++ b/2c_fibertyping.py @@ -131,13 +131,17 @@ def measure_mean_of_rois(imp, channel, rm): return mean_intensities +# ─── Main Code ──────────────────────────────────────────────────────────────── -execution_start_time = time.time() +if __name__ == "__main__": + execution_start_time = time.time() + IJ.log("\\Clear") misc.timed_log("Script starting") setup_defined_ij(rm, rt) image_file_info = pathtools.parse_path(path_to_image) -# open image using Bio-Formats + + # open image using Bio-Formats raw = bf.import_image(image_file_info["full"]) raw.hide() -- GitLab