Skip to content
Snippets Groups Projects
Commit 9001f04c authored by Gaelle Letort's avatar Gaelle Letort
Browse files

with help page

parent f835f288
No related branches found
No related tags found
No related merge requests found
[metadata]
name = napari-3dtimereg
version = 0.0.3
version = 0.0.4
description = Registration of 3D movies applied to all channels
long_description = file: README.md
long_description_content_type = text/markdown
......
......@@ -73,13 +73,26 @@ def start():
cview.gamma = 0.95
return getChanels()
def show_help_chanel():
""" Open the gitlab page with the documentation """
import webbrowser
webbrowser.open_new_tab("https://gitlab.pasteur.fr/gletort/napari-3dtimereg/#choose-movie-and-reference-chanel")
return
def show_help_align():
""" Open the gitlab page with the documentation """
import webbrowser
webbrowser.open_new_tab("https://gitlab.pasteur.fr/gletort/napari-3dtimereg/#calculate-alignement")
return
def getChanels():
""" Choose the chanel on which to calculate the alignement """
@magicgui(call_button="Update",
reference_chanel={"widget_type": "Slider", "min":0, "max": refimg.shape[2]-1},
help={"widget_type":"PushButton", "value": False, "name": "help"},
)
def get_chanel( reference_chanel=0 , ):
def get_chanel( reference_chanel=0 , help=False, ):
global refchanel
global resimg
global colchan
......@@ -109,6 +122,8 @@ def getChanels():
#cview.contrast_limits = quants
do_registration()
get_chanel.help.clicked.connect(show_help_chanel)
wid = viewer.window.add_dock_widget(get_chanel, name="Choose chanel")
return wid
......@@ -294,6 +309,7 @@ def do_registration():
spacing_two={"widget_type":"LiteralEvalLineEdit"},
spacing_three={"widget_type":"LiteralEvalLineEdit"},
spacing_four={"widget_type":"LiteralEvalLineEdit"},
help={"widget_type":"PushButton", "value": False, "name": "help"},
)
def get_paras( reference_frame = "previous",
show_log = False,
......@@ -309,6 +325,7 @@ def do_registration():
spacing_two=2,
spacing_three=1,
spacing_four=1,
help = False,
):
global results_transform_parameters_aff, results_transform_parameters
......@@ -339,6 +356,7 @@ def do_registration():
show_advanced(False)
get_paras.show_advanced_parameters.changed.connect(show_advanced)
get_paras.help.clicked.connect(show_help_align)
wid = viewer.window.add_dock_widget(get_paras, name="Calculate alignement")
return wid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment