From 688a5db956dcc1171426b7b7f3d44ebc3b65c021 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 29 Apr 2019 09:19:54 +0200 Subject: [PATCH] renamed jpg post processing --- ideas.md | 2 -- mtor/postproc.py | 2 +- mtor/workflows.py | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ideas.md b/ideas.md index 57b5316..d92f820 100644 --- a/ideas.md +++ b/ideas.md @@ -1,5 +1,3 @@ Further Ideas: -- color the roi -- create a movie - automatic use of cached values diff --git a/mtor/postproc.py b/mtor/postproc.py index bdcf64e..99784af 100644 --- a/mtor/postproc.py +++ b/mtor/postproc.py @@ -10,7 +10,7 @@ def stem_file_list(selected_files): return {pathlib.Path(filename).stem for filename in selected_files} -def rename_color_coded_images(file_stems, parameters): +def annotate_color_coded_images(file_stems, parameters): colors = {LABEL_DISCARDED: (198, 78, 82), LABEL_SELECTED: (74, 114, 174)} top = parameters.roi_top bottom = parameters.roi_bottom diff --git a/mtor/workflows.py b/mtor/workflows.py index b9a7ec7..6da53a9 100644 --- a/mtor/workflows.py +++ b/mtor/workflows.py @@ -21,7 +21,7 @@ from .dataproc import ( ) from .postproc import ( stem_file_list, - rename_color_coded_images, + annotate_color_coded_images, sort_cut_images, remove_cuts_dir, ) @@ -79,7 +79,7 @@ def data_workflow(stats_results, parameters): def postprocessing_workflow(selected_files, parameters): print("4/4: Post processing") file_stems = stem_file_list(selected_files) - rename_color_coded_images(file_stems, parameters) + annotate_color_coded_images(file_stems, parameters) sort_cut_images(file_stems, parameters) remove_cuts_dir(parameters)