Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Schorb
VolumeAlign
Commits
9a242e4b
Commit
9a242e4b
authored
Jun 24, 2022
by
Martin Schorb
Browse files
bugfix, hide section for FIBSEM tile views
parent
7a451577
Pipeline
#34847
passed with stage
in 1 minute and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dashUI/callbacks/match_selector.py
View file @
9a242e4b
...
...
@@ -95,7 +95,7 @@ def update_mc_owner_dd(init_in, new_owner, thispage, dd_own_in):
State
({
'component'
:
'mc_new_enabled'
,
'module'
:
MATCH
},
'data'
)],
prevent_initial_call
=
True
)
def
pointmatch_mcown_dd_sel
(
mc_own_sel
,
new_mc
,
mc_dd_opt
,
init_match
,
thispage
,
new_enabled
=
'False'
):
trigger
=
hf
.
trigger
()
all_mcs
=
dash
.
no_update
thispage
=
thispage
.
lstrip
(
'/'
)
...
...
@@ -105,6 +105,9 @@ def pointmatch_mcown_dd_sel(mc_own_sel, new_mc, mc_dd_opt, init_match, thispage,
if
thispage
==
''
or
thispage
not
in
hf
.
trigger
(
key
=
'module'
):
raise
PreventUpdate
if
None
in
[
mc_own_sel
,
new_mc
,
mc_dd_opt
,
init_match
,
thispage
]:
raise
PreventUpdate
if
'mc_owner_dd'
in
trigger
:
if
mc_own_sel
==
''
:
raise
PreventUpdate
...
...
dashUI/callbacks/tile_view.py
View file @
9a242e4b
...
...
@@ -71,6 +71,8 @@ for idx in range(params.max_tileviews):
ol
=
dash
.
callback_context
.
outputs_list
thisimtype
=
tileim_idx
=
ol
[
0
][
'id'
][
'component'
].
split
(
'_'
)[
0
]
tileim_idx
=
ol
[
0
][
'id'
][
'component'
].
split
(
'_'
)[
-
1
]
if
(
not
stack_sel
==
'-'
)
and
(
allstacks
is
not
None
):
...
...
@@ -117,6 +119,9 @@ for idx in range(params.max_tileviews):
if
o_min
==
o_max
:
slicestyle
=
{
'display'
:
'none'
}
if
owner
==
'FIBSEM'
and
thisimtype
==
'tileim'
:
slicestyle
=
{
'display'
:
'none'
}
url
=
params
.
render_base_url
+
params
.
render_version
+
'owner/'
+
owner
+
'/project/'
+
project
\
+
'/stack/'
+
stack_sel
url1
=
url
+
'/tileIds'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment