Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FiberUnit] Units cannot be parsed ... #2428

Open
kif opened this issue Feb 7, 2025 · 1 comment
Open

[FiberUnit] Units cannot be parsed ... #2428

kif opened this issue Feb 7, 2025 · 1 comment
Assignees

Comments

@kif
Copy link
Member

kif commented Feb 7, 2025

> pyFAI.units.to_unit(str(pyFAI.units.Q_OOP))

ERROR:pyFAI.units:Unable to recognize this type unit '
qoop_nm^-1
Incident_angle=0.0°
Tilt_angle=0.0°
Sample orientation=1
' of type <class 'str'>. Valid units are r_mm, r_m, 2th_deg, 2th_rad, q_nm^-1, q_A^-1, d_m, d_nm, d_A, d*2_A^-2, d*2_nm^-2, log10(q.m)_None, log(q.nm)_None, log(1+q.nm)_None, log(1+q.A)_None, arcsinh(q.nm)_None, arcsinh(q.A)_None, qx_nm^-1, qy_nm^-1, scattering_angle_vert_rad, scattering_angle_horz_rad, exit_angle_vert_rad, exit_angle_horz_rad, exit_angle_vert_deg, exit_angle_horz_deg, qxgi_nm^-1, qygi_nm^-1, qzgi_nm^-1, qip_nm^-1, qoop_nm^-1, qtot_nm^-1, qxgi_A^-1, qygi_A^-1, qzgi_A^-1, qip_A^-1, qoop_A^-1, qtot_A^-1, chi_rad, chi_deg, chigi_rad, chigi_deg

@EdgarGF93
Copy link
Collaborator

#2442

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants