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

Improve unitutils #1963

Merged
merged 3 commits into from
Oct 5, 2023
Merged

Improve unitutils #1963

merged 3 commits into from
Oct 5, 2023

Conversation

vallsv
Copy link
Collaborator

@vallsv vallsv commented Oct 4, 2023

Following #1962 this PR provides more flexible conversion for r, q, d*2 using unit.space.

Plus add const RecD2_A (symmetric to RecD2_NM)

A test was added to check the new implementation versus the previous one.

@vallsv vallsv requested a review from kif October 4, 2023 10:11
@vallsv vallsv self-assigned this Oct 4, 2023
pyFAI/gui/utils/unitutils.py Outdated Show resolved Hide resolved
@vallsv vallsv force-pushed the fix-convert-to-d2 branch from 7fafb4a to 83bfa61 Compare October 5, 2023 08:09
@vallsv vallsv force-pushed the fix-convert-to-d2 branch from 83bfa61 to a49a57c Compare October 5, 2023 08:11
@vallsv
Copy link
Collaborator Author

vallsv commented Oct 5, 2023

The PR can be reviewed. It includes your fixes

@vallsv vallsv added the ready to merge Please review label Oct 5, 2023
Copy link
Member

@kif kif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kif kif merged commit 2a5b4c3 into silx-kit:main Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Please review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants