Skip to content

Commit

Permalink
dynamically select tilt angle closest to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
McHaillet committed Feb 26, 2024
1 parent d25f2c3 commit ea5a7a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/tsa_real_data_multiregion.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
STAGE_TILT_ANGLE_PRIORS = torch.arange(-51, 51, 3)
TILT_AXIS_ANGLE_PRIOR = -88.7
ALIGNMENT_PIXEL_SIZE = 13.79 * 2
REFERENCE_TILT = 17 # the reference image for coarse alignment
# set 0 degree tilt as reference
REFERENCE_TILT = STAGE_TILT_ANGLE_PRIORS.abs().argmin()

tilt_series = torch.as_tensor(mrcfile.read(IMAGE_FILE))

Expand Down

0 comments on commit ea5a7a0

Please sign in to comment.