Skip to content

Commit

Permalink
explicit _rad or _deg
Browse files Browse the repository at this point in the history
  • Loading branch information
edgar1993a committed Jan 20, 2025
1 parent e1b4599 commit ce44e6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pyFAI/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ def eq_chi_gi(x, y, z, wavelength, incident_angle=0.0, tilt_angle=0.0, sample_or
unit_symbol="nm^{-1}",
positive=False)

register_radial_fiber_unit("scattering_angle_vert",
register_radial_fiber_unit("scattering_angle_vert_rad",
scale=1.0,
label=r"Vertical scattering angle (rad)",
formula=formula_scattering_angle_vert,
Expand All @@ -975,7 +975,7 @@ def eq_chi_gi(x, y, z, wavelength, incident_angle=0.0, tilt_angle=0.0, sample_or
unit_symbol="rad",
positive=False)

register_radial_fiber_unit("scattering_angle_horz",
register_radial_fiber_unit("scattering_angle_horz_rad",
scale=1.0,
label=r"Horizontal scattering angle (rad)",
formula=formula_scattering_angle_horz,
Expand All @@ -1002,7 +1002,7 @@ def eq_chi_gi(x, y, z, wavelength, incident_angle=0.0, tilt_angle=0.0, sample_or
unit_symbol="rad",
positive=False)

register_radial_fiber_unit("exit_angle_vert",
register_radial_fiber_unit("exit_angle_vert_deg",
scale=180.0 / numpy.pi,
label=r"Vertical exit angle (deg)",
formula=formula_exit_angle_vert,
Expand All @@ -1011,7 +1011,7 @@ def eq_chi_gi(x, y, z, wavelength, incident_angle=0.0, tilt_angle=0.0, sample_or
unit_symbol="deg",
positive=False)

register_radial_fiber_unit("exit_angle_horz",
register_radial_fiber_unit("exit_angle_horz_deg",
scale=180.0 / numpy.pi,
label=r"Horizontal exit angle (deg)",
formula=formula_exit_angle_horz,
Expand Down

0 comments on commit ce44e6c

Please sign in to comment.