Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 19, 2024
1 parent 07f3fe4 commit e86b732
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/pyFAI/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def q_lab(x, y, z, wavelength=None, incident_angle=0.0, tilt_angle=0.0, sample_o
q_lab_horz(x=x, y=y, z=z, wavelength=wavelength),
q_lab_vert(x=x, y=y, z=z, wavelength=wavelength),
))


def rotation_tilt_angle(tilt_angle=0.0):
"""Calculates the rotation matrix along the x axis, (beam axis); represents the tilt angle rotation
Expand Down Expand Up @@ -424,7 +424,7 @@ def eq_qbeam(hpos, vpos, z, wavelength=None, incident_angle=0.0, tilt_angle=0.0,
q_rotated_incident_angle(x=hpos, y=vpos, z=z, wavelength=wavelength, incident_angle=incident_angle),
axes=(0,0),
)


def eq_qhorz(hpos, vpos, z, wavelength=None, incident_angle=0.0, tilt_angle=0.0, sample_orientation=1):
"""Calculates the component of the scattering vector along the horizontal direction in the sample frame (for GI/Fiber diffraction), towards the center of the ring
Expand All @@ -443,7 +443,7 @@ def eq_qhorz(hpos, vpos, z, wavelength=None, incident_angle=0.0, tilt_angle=0.0,
q_rotated_incident_angle(x=hpos, y=vpos, z=z, wavelength=wavelength, incident_angle=incident_angle),
axes=(0,0),
)


def eq_qvert(hpos, vpos, z, wavelength=None, incident_angle=0.0, tilt_angle=0.0, sample_orientation=1):
"""Calculates the component of the scattering vector along the vertical direction in the sample frame (for GI/Fiber diffraction), to the roof
Expand All @@ -462,7 +462,7 @@ def eq_qvert(hpos, vpos, z, wavelength=None, incident_angle=0.0, tilt_angle=0.0,
q_rotated_incident_angle(x=hpos, y=vpos, z=z, wavelength=wavelength, incident_angle=incident_angle),
axes=(0,0),
)


def eq_qhorz_gi(x, y, z, wavelength, incident_angle=0.0, tilt_angle=0.0, sample_orientation=1):
"""Calculates the component of the scattering vector along the horizontal direction in the sample frame (for GI/Fiber diffraction), towards the center of the ring
Expand Down Expand Up @@ -977,4 +977,3 @@ def get_unit_fiber(name, incident_angle:float =0.0, tilt_angle:float =0.0, sampl
unit.set_tilt_angle(tilt_angle)
unit.set_sample_orientation(sample_orientation)
return unit

0 comments on commit e86b732

Please sign in to comment.