Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
daurer committed Feb 2, 2024
1 parent 3f6c94c commit 4b9b291
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ptypy/experiment/hdf5_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,11 @@ def _reorder_preview_indices(self):
if self.p.frameorder.indices is None:
return
order = np.array(self.p.frameorder.indices, dtype=int)
print(order.max(), self.preview_indices.shape)
if (order.max() > self.preview_indices.shape[-1]):
log(3, "Given frameorder does not match dimensionality of data, keeping the original order")
return
log(3, "Reordering indices")
self.preview_indices = self.preview_indices.T[order].T

def load_unmapped_raster_scan(self, indices):
Expand Down

0 comments on commit 4b9b291

Please sign in to comment.