Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with creating PBPMap from multi-layer TensorMap #350

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading