Commit 34db148c authored by payno's avatar payno
Browse files

[edfscan] manage the case there is only one projectin

parent 89fb9a33
Pipeline #21876 failed with stages
in 53 seconds
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment