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
tomotools
tomoscan
Commits
34db148c
Commit
34db148c
authored
Feb 25, 2020
by
payno
Browse files
[edfscan] manage the case there is only one projectin
parent
89fb9a33
Pipeline
#21876
failed with stages
in 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tomoscan/scanbase.py
View file @
34db148c
...
...
@@ -288,11 +288,12 @@ class TomoScanBase:
res
=
{}
# deal with the 'standard' acquisitions
for
proj_i
in
range
(
n_projection
):
angle
=
proj_i
*
scan_range
/
(
n_projection
-
1
)
if
n_projection
==
1
:
angle
=
0.0
else
:
angle
=
proj_i
*
scan_range
/
(
n_projection
-
1
)
if
proj_i
<
len
(
urls
):
res
[
angle
]
=
urls
[
proj_i
]
# TODO: better to have them from the header ?!!
# haven't found the information in here.
if
len
(
urls
)
>
n_projection
:
# deal with extra images (used to check if the sampled as moved for
...
...
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