display sequence now gives a title to the images it opens.

This make it easier to select images in combo boxes
This commit is contained in:
Guillaume Raffy 2022-01-26 18:11:17 +01:00
parent d5f948d304
commit 6882b4af35
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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: