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

Compatibility between FiberIntegrator and MultiGeometry #2331

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

EdgarGF93
Copy link
Collaborator

From #2304
Wrapping the fiber methods inside the MultiGeometry class

Edgar Gutierrez Fernandez added 3 commits November 12, 2024 13:33
@EdgarGF93 EdgarGF93 added the work in progress Don't review label Nov 12, 2024
@EdgarGF93 EdgarGF93 self-assigned this Nov 12, 2024
@EdgarGF93 EdgarGF93 changed the title Mg fiber Compatibility between FiberIntegrator and MultiGeometry Nov 12, 2024
:return: regrouped intensity and unit arrays
:rtype: Integrate2dResult
"""
if "npt_horizontal" in kwargs:
Copy link
Member

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 ...

fi.reset_integrator(incident_angle=unit_ip.incident_angle,
tilt_angle=unit_ip.tilt_angle,
sample_orientation=unit_ip.sample_orientation)

Copy link
Member

@kif kif Nov 13, 2024

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

@EdgarGF93
Copy link
Collaborator Author

First, we merge #2324 and the code for this PR will be much lighter

@EdgarGF93
Copy link
Collaborator Author

Needs also #2336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work in progress Don't review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants