Commit 303c5801 authored by payno's avatar payno
Browse files

[edfscan] fix get_proj_angle_url -> was returning the index for control scan instead of urls

parent 675c0d30
Pipeline #22069 failed with stages
in 1 minute and 17 seconds
......@@ -305,27 +305,27 @@ class TomoScanBase:
logger.warning('incoherent data information to retrieve'
'scan extra images angle')
elif len(extraImgs) == 4:
res['270(1)'] = extraImgs[0]
res['180(1)'] = extraImgs[1]
res['90(1)'] = extraImgs[2]
res['0(1)'] = extraImgs[3]
res['270(1)'] = ordered_url[extraImgs[0]]
res['180(1)'] = ordered_url[extraImgs[1]]
res['90(1)'] = ordered_url[extraImgs[2]]
res['0(1)'] = ordered_url[extraImgs[3]]
else:
res['360(1)'] = extraImgs[0]
res['270(1)'] = extraImgs[1]
res['180(1)'] = extraImgs[2]
res['90(1)'] = extraImgs[3]
res['0(1)'] = extraImgs[4]
res['360(1)'] = ordered_url[extraImgs[0]]
res['270(1)'] = ordered_url[extraImgs[1]]
res['180(1)'] = ordered_url[extraImgs[2]]
res['90(1)'] = ordered_url[extraImgs[3]]
res['0(1)'] = ordered_url[extraImgs[4]]
elif len(extraImgs) in (2, 3):
if scan_range > 180:
logger.warning('incoherent data information to retrieve'
'scan extra images angle')
elif len(extraImgs) is 3:
res['180(1)'] = extraImgs[0]
res['90(1)'] = extraImgs[1]
res['0(1)'] = extraImgs[2]
res['180(1)'] = ordered_url[extraImgs[0]]
res['90(1)'] = ordered_url[extraImgs[1]]
res['0(1)'] = ordered_url[extraImgs[2]]
else:
res['90(1)'] = extraImgs[0]
res['0(1)'] = extraImgs[1]
res['90(1)'] = ordered_url[extraImgs[0]]
res['0(1)'] = ordered_url[extraImgs[1]]
else:
raise ValueError('incoherent data information to retrieve scan'
'extra images angle')
......
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