From 6882b4af359488f81c7cb73746934341060bccd6 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Wed, 26 Jan 2022 18:11:17 +0100 Subject: [PATCH] display sequence now gives a title to the images it opens. This make it easier to select images in combo boxes --- Makefile | 2 +- src/ij-plugins/Ipr/Lipase/Display_Sequence.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4fbf9e7..92ec37a 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ TEMP_PATH:=$(shell echo ~/work/lipase/tmp) TESTS_OUTPUT_DATA_PATH:=$(TEMP_PATH) LIB_SRC_FILES=$(shell find ./src/lipase -name "*.py") PLUGINS_SRC_FILES=$(shell find ./src/ij-plugins -name "*.py") -LIPASE_VERSION=1.08 +LIPASE_VERSION=1.09 BUILD_ROOT_PATH:=$(TEMP_PATH)/build PACKAGE_FILE_PATH=$(BUILD_ROOT_PATH)/lipase-$(LIPASE_VERSION).zip diff --git a/src/ij-plugins/Ipr/Lipase/Display_Sequence.py b/src/ij-plugins/Ipr/Lipase/Display_Sequence.py index 3107a3a..b947cea 100644 --- a/src/ij-plugins/Ipr/Lipase/Display_Sequence.py +++ b/src/ij-plugins/Ipr/Lipase/Display_Sequence.py @@ -98,8 +98,8 @@ def ask_for_sequence(catalog): selected_channel_id = 'all' else: selected_channel_id = selected_sequence.get_channel_names()[selected_channel_index - 1] # eg 'DM300_327-353_fluo' - print("chosen sequence : %s" % selected_sequence_id) - print("chosen channel : %s" % selected_channel_id) + logger.debug("chosen sequence : %s" % selected_sequence_id) + logger.debug("chosen channel : %s" % selected_channel_id) return {'sequence': selected_sequence, 'channel_id':selected_channel_id} def run_script(): @@ -119,7 +119,9 @@ def run_script(): hyperstack = sequence.as_hyperstack(selected_channel_ids=[channel_id], selected_frames=None, selected_slices=None) sequence_as_stack = hyperstack.hyperstack - print(type(sequence_as_stack)) + logger.debug('type(sequence_as_stack): ', type(sequence_as_stack)) + title = "%s:%s" % (sequence.id, channel_id) + sequence_as_stack.setTitle(title) global SEQUENCE SEQUENCE = sequence_as_stack else: