Skip to content

Commit

Permalink
demon reg dim fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rama Vasudevan committed Aug 9, 2023
1 parent c1d1f47 commit 83fbd72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pycroscopy/image/image_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ def demon_registration(dataset, verbose=False):
demon_registered.del_dimension(0)
demon_registered.del_dimension(1)
demon_registered.del_dimension(2)
print(dataset._axes)

axis = dataset._axes[0]
demon_registered.set_dimension(0, axis)
demon_registered.rename_dimension(0, dataset.dim_0.name)

axis = dataset._axes[1]

demon_registered.set_dimension(1, axis)
demon_registered.rename_dimension(0, dataset.dim_1.name)
demon_registered.rename_dimension(1, dataset.dim_1.name)
axis = dataset._axes[2]

demon_registered.set_dimension(2, axis)
Expand Down

0 comments on commit 83fbd72

Please sign in to comment.