Skip to content

Commit

Permalink
Remove a few remaining references to ybeam
Browse files Browse the repository at this point in the history
  • Loading branch information
jadball committed Jan 17, 2025
1 parent febfed0 commit e9f32cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ImageD11/sinograms/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
def sample_to_lab_sincos(sx, sy, y0, dty, sinomega, cosomega):
"""
Converts position in sample frame (sx, sy) to position in lab frame (lx, ly).
The units of sx, sy, y0, ybeam and dty must agree.
The units of sx, sy, y0, and dty must agree.
:param sx: X-coordinate in sample reference frame
:type sx: (float, np.ndarray)
Expand Down Expand Up @@ -127,7 +127,7 @@ def sample_to_lab(sx, sy, y0, dty, omega):
def lab_to_sample_sincos(lx, ly, y0, dty, sinomega, cosomega):
"""
Converts position in lab frame (lx, ly) to position in lab frame (sx, sy).
The units of sx, sy, y0, ybeam and dty must agree.
The units of sx, sy, y0, and dty must agree.
:param lx: X-coordinate in lab reference frame
:type lx: (float, np.ndarray)
Expand Down Expand Up @@ -247,7 +247,7 @@ def dty_values_grain_in_beam_sincos(sx, sy, y0, sinomega, cosomega):
syr = sx * sinomega + sy * cosomega
lx = sxr
ly = syr + dty + (ybeam - y0)
ly = syr + dty - y0
Therefore:
ly = sx * sinomega + sy * cosomega + dty - y0
Expand Down

0 comments on commit e9f32cd

Please sign in to comment.