-
Notifications
You must be signed in to change notification settings - Fork 97
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
Compatibility between FiberIntegrator and MultiGeometry #2331
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
src/pyFAI/multi_geometry.py
Outdated
:return: regrouped intensity and unit arrays | ||
:rtype: Integrate2dResult | ||
""" | ||
if "npt_horizontal" in kwargs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this block of code is duplicated twice, it would make sense to have it in a (private) method. One may need to update the locals dict ...
src/pyFAI/multi_geometry.py
Outdated
fi.reset_integrator(incident_angle=unit_ip.incident_angle, | ||
tilt_angle=unit_ip.tilt_angle, | ||
sample_orientation=unit_ip.sample_orientation) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always convert method to an instance of IntegrationMethod and then check the attributes. see how it is done l433
First, we merge #2324 and the code for this PR will be much lighter |
Needs also #2336 |
From #2304
Wrapping the fiber methods inside the MultiGeometry class