Commit 2ae1e4da authored by payno's avatar payno
Browse files

[scanBase] get_sinogram: fix typo on getting the proj indexes

parent bf3ea398
......@@ -473,12 +473,12 @@ class TomoScanBase:
projections = self.projections
o_keys = list(projections.keys())
o_keys.sort()
for i_proj, proj_key in enumerate(o_keys):
for i_proj, proj_index in enumerate(o_keys):
if i_proj % subsampling == 0:
proj_url = projections[proj_key]
proj_url = projections[proj_index]
proj = silx.io.utils.get_data(proj_url)
proj = self.flat_field_correction(
projs=[proj], proj_indexes=[i_proj]
projs=[proj], proj_indexes=[proj_index]
)[0]
sinogram[i_proj // subsampling] = proj[line]
advancement.increaseAdvancement(1)
......
Markdown is supported
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