Display Sequence now displays an informative messagebox inseatd of crashing when the list of sequence is empty
fixes #7
This commit is contained in:
parent
74d78d21e2
commit
dbc22ea3b1
2
Makefile
2
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.04
|
||||
LIPASE_VERSION=1.05
|
||||
|
||||
BUILD_ROOT_PATH:=$(TEMP_PATH)/build
|
||||
PACKAGE_FILE_PATH=$(BUILD_ROOT_PATH)/lipase-$(LIPASE_VERSION).zip
|
||||
|
|
|
@ -101,7 +101,7 @@ def run_script():
|
|||
user_settings = UserSettings()
|
||||
IImageEngine.set_instance(IJImageEngine())
|
||||
catalog = ImageCatalog(user_settings.raw_images_root_path)
|
||||
|
||||
if len(catalog.sequences) > 0:
|
||||
user_selection = ask_for_sequence(catalog)
|
||||
if len(user_selection) == 0:
|
||||
return
|
||||
|
@ -117,6 +117,9 @@ def run_script():
|
|||
print(type(sequence_as_stack))
|
||||
global SEQUENCE
|
||||
SEQUENCE = sequence_as_stack
|
||||
else:
|
||||
IJ.runMacro('waitForUser("Warning", "No sequences have been found in raw images root dir (%s)"' % user_settings.raw_images_root_path)
|
||||
|
||||
|
||||
# note : when launched from fiji, __name__ doesn't have the value "__main__", as when launched from python
|
||||
run_script()
|
||||
|
|
Loading…
Reference in New Issue