Skip to content

Commit

Permalink
Add scan_positions
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Ercius ncem-gauss jupyter committed Sep 16, 2024
1 parent 7c8a771 commit 62b9478
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/stempy/io/sparse_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ def from_hdf5(cls, filepath, keep_flyback=True, **init_kwargs):
end2 = (ii+1)*new_num_cols*num + num*ii
data[start:end] = frames[start2:end2]
scan_shape = (scan_shape[0]-1, scan_shape[1]) # update scan shape

# Create the proper scan_positions without the flyback column
scan_positions = np.ravel_multi_index([ii.ravel() for ii in np.indices(scan_shape)], scan_shape)

# Load any metadata
metadata = {}
if 'metadata' in f:
Expand Down

0 comments on commit 62b9478

Please sign in to comment.