Skip to content

Commit

Permalink
Fixed error in metadata assignment in trans_stack
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewHerzing committed Oct 3, 2023
1 parent f5c797f commit 717e0f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tomotools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,8 @@ def trans_stack(self, xshift=0.0, yshift=0.0, angle=0.0,
transformed.metadata.Tomography.yshift =\
self.metadata.Tomography.yshift + yshift

transformed.metadata.Tomography.rotation =\
self.metadata.Tomography.rotation + angle
transformed.metadata.Tomography.tiltaxis =\
self.metadata.Tomography.tiltaxis + angle
return transformed

# noinspection PyTypeChecker
Expand Down

0 comments on commit 717e0f0

Please sign in to comment.