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
1323b9d4
Commit
1323b9d4
authored
Jan 05, 2022
by
Martin Schorb
Browse files
tile neighbours fixes
parent
65668353
Changes
2
Show whitespace changes
Inline
Side-by-side
dash/callbacks/tile_view.py
View file @
1323b9d4
...
...
@@ -94,7 +94,6 @@ for idx in range(params.max_tileviews):
if
o_min
==
o_max
:
slicestyle
=
{
'display'
:
'none'
}
url
=
params
.
render_base_url
+
params
.
render_version
+
'owner/'
+
owner
+
'/project/'
+
project
+
'/stack/'
+
stack_sel
url1
=
url
+
'/tileIds'
...
...
@@ -103,7 +102,6 @@ for idx in range(params.max_tileviews):
url2
=
url
+
'/tile/'
+
tile
url2
+=
'/render-parameters'
tilespec
=
requests
.
get
(
url2
).
json
()
max_int
=
tilespec
[
'tileSpecs'
][
0
][
'maxIntensity'
]
...
...
@@ -173,20 +171,18 @@ for idx in range(params.max_tileviews):
tp_jsonfiles
=
hf
.
jsonfiles
(
tilepairdir
)
if
'tile'
in
lead_tile
.
keys
():
tiles
,
slices
,
positions
=
hf
.
neighbours_from_json
(
tp_jsonfiles
,
lead_tile
[
'tile'
])
t_labels
=
tiles
t_labels
=
tiles
.
copy
()
if
tiles
==
[]:
return
dash
.
no_update
tile
=
tiles
[
-
1
]
if
owner
in
params
.
tile_display
.
keys
():
if
owner
in
params
.
tile_display
.
keys
()
and
len
(
slices
)
==
len
(
t_labels
):
t_labels
,
tile0
=
params
.
tile_display
[
owner
](
tiles
,
prev_tile
,
slicenum
)
for
t_idx
,
label
in
enumerate
(
t_labels
):
if
len
(
slices
)
>
1
:
if
len
(
slices
)
>
1
:
slicestr
=
'Slice '
+
str
(
slices
[
t_idx
])
+
' - '
else
:
slicestr
=
''
...
...
dash/tilepairs.py
View file @
1323b9d4
...
...
@@ -171,7 +171,7 @@ def tilepairs_execute_gobutton(click,pairmode,stack,slicedepth,comp_sel,startsec
run_params_generate
[
'excludeSameLayerNeighbors'
]
=
'True'
if
owner
==
'SBEM'
:
run_params_generate
[
"xyNeighborFactor"
]
=
0.
3
run_params_generate
[
"xyNeighborFactor"
]
=
0.
2
param_file
=
params
.
json_run_dir
+
'/'
+
module
+
'_'
+
run_prefix
+
'_'
+
pairmode
+
'.json'
...
...
Write
Preview
Markdown
is supported
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