Skip to content

Commit

Permalink
Merge pull request FABLE-3DXRD#350 from jadball/master
Browse files Browse the repository at this point in the history
Fix bug with creating PBPMap from multi-layer TensorMap
  • Loading branch information
jadball authored Nov 12, 2024
2 parents 8db3d8d + 5f85358 commit 1a4388a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ImageD11/sinograms/tensor_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,12 +1281,12 @@ def to_pbpmap(self, z_layer=0, default_npks=20, default_nuniq=20):
# get the si, sj values
si, sj = recon_to_step(ri, rj, ubi_pbpmap_order.shape[:2])
# get the mi, mj, mk values
mi, mj, mk = self.recon_index_to_map(ri, rj, ubi_pbpmap_order.shape[1])
_, mj, mk = self.recon_index_to_map(ri, rj, ubi_pbpmap_order.shape[1])
si_col[row_idx] = si
sj_col[row_idx] = sj
# do we have anything at this reconstruction point?
# otherwise we have nothing
if self.phase_ids[mi, mj, mk] > -1:
if self.phase_ids[z_layer, mj, mk] > -1:
npks_col[row_idx] = default_npks
nuniq_col[row_idx] = default_nuniq
row_idx += 1
Expand Down

0 comments on commit 1a4388a

Please sign in to comment.