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
657dfa5a
Commit
657dfa5a
authored
Jun 23, 2022
by
Martin Schorb
Browse files
tifstack importer ready to test
parent
8e3776b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
dashUI/index.py
View file @
657dfa5a
...
...
@@ -29,11 +29,11 @@ sidebar_back = html.Nav(className='sidebar_back', children='')
menu_items
=
[
'convert'
,
# 'mipmaps',
'tilepairs'
,
'pointmatch'
,
'solve'
,
'export'
,
'finalize'
#
'tilepairs',
#
'pointmatch',
#
'solve',
#
'export',
#
'finalize'
]
menu_text
=
[
'Convert & upload'
,
...
...
dashUI/inputtypes/tifstack_conv.py
View file @
657dfa5a
...
...
@@ -59,6 +59,27 @@ pathbrowse = pages.path_browse(label)
page1
=
[
directory_sel
,
pathbrowse
,
html
.
Div
(
store
)]
voxsz
=
html
.
Div
(
children
=
[
html
.
H4
(
"Resolution values"
),
"x/y (isotropic): "
,
dcc
.
Input
(
id
=
{
'component'
:
'xy_px_input'
,
'module'
:
label
},
type
=
"number"
,
debounce
=
True
,
value
=
10.0
,
persistence
=
True
),
" nm"
,
html
.
Br
(),
html
.
Br
(),
"z (milling step): "
,
dcc
.
Input
(
id
=
{
'component'
:
'z_px_input'
,
'module'
:
label
},
type
=
"number"
,
debounce
=
True
,
value
=
10.0
,
persistence
=
True
),
" nm"
,
]
)
page1
.
append
(
voxsz
)
# # ===============================================
# RENDER STACK SELECTOR
...
...
@@ -152,10 +173,12 @@ page2.append(collapse_stdout)
],
[
State
({
'component'
:
'project_dd'
,
'module'
:
label
},
'value'
),
State
(
label
+
'compute_sel'
,
'value'
),
State
({
'component'
:
'xy_px_input'
,
'module'
:
label
},
'value'
),
State
({
'component'
:
'z_px_input'
,
'module'
:
label
},
'value'
),
State
({
'component'
:
'store_run_status'
,
'module'
:
label
},
'data'
),
State
({
'component'
:
'store_render_launch'
,
'module'
:
label
},
'data'
)],
prevent_initial_call
=
True
)
def
tifstack_conv_gobutton
(
stack_sel
,
in_dir
,
click
,
proj_dd_sel
,
compute_sel
,
run_state
,
outstore
):
def
tifstack_conv_gobutton
(
stack_sel
,
in_dir
,
click
,
proj_dd_sel
,
compute_sel
,
pxs
,
zwidth
,
run_state
,
outstore
):
ctx
=
dash
.
callback_context
trigger
=
ctx
.
triggered
[
0
][
'prop_id'
].
split
(
'.'
)[
0
].
partition
(
label
)[
2
]
but_disabled
=
True
...
...
@@ -187,6 +210,12 @@ def tifstack_conv_gobutton(stack_sel, in_dir, click, proj_dd_sel, compute_sel, r
run_params
[
'image_directory'
]
=
in_dir
run_params
[
'stack'
]
=
stack_sel
vox_sz
=
[
pxs
/
1000
]
*
2
vox_sz
.
append
(
zwidth
/
1000
)
run_params
[
'pxs'
]
=
vox_sz
with
open
(
param_file
,
'w'
)
as
f
:
json
.
dump
(
run_params
,
f
,
indent
=
4
)
...
...
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