Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tomotools
Nabu
Commits
382efabc
Commit
382efabc
authored
Jun 22, 2020
by
Pierre Paleo
Browse files
cli: Add --slice constraint
parent
58f49172
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/resources/cli/reconstruct.py
View file @
382efabc
...
...
@@ -45,6 +45,13 @@ def main():
logfile
=
args
[
"log_file"
]
)
# For now we need the --slice argument
if
args
[
"slice"
].
strip
()
==
""
:
msg
=
"Need to provide the --slice argument (ex. --slice 1024 or --slice 0-1024)"
logger
.
fatal
(
msg
)
exit
(
1
)
#
subregion
=
get_subregion
(
args
[
"slice"
],
proc
.
dataset_infos
.
radio_dims
[
-
1
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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