Skip to content

Add interp_method to all the interpolators - #486

Open
huixingjian wants to merge 8 commits into
LASY-org:developmentfrom
huixingjian:profile_interpolation
Open

huixingjian wants to merge 8 commits into
LASY-org:developmentfrom
huixingjian:profile_interpolation

Conversation

@huixingjian

Copy link
Copy Markdown
Contributor

This PR adds an interp_method option to array-based laser profile interpolation.
Previously, RegularGridInterpolator used its default interpolation method, which is "linear". While linear interpolation is robust and efficient, it can introduce noticeable interpolation errors for smooth or highly structured laser fields. This PR exposes the interpolation method as a user-configurable argument, allowing users to select higher-order interpolation schemes when needed.

@huixingjian
huixingjian requested a review from MaxThevenet June 9, 2026 10:29

@MaxThevenet MaxThevenet left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for this PR! Could you check that the updated descriptions below are correct?

Comment thread lasy/profiles/from_array_profile.py Resolved
huixingjian and others added 2 commits October 15, 2026 10:20
Co-authored-by: Maxence Thévenet <maxence.thevenet@desy.de>
Co-authored-by: Maxence Thévenet <maxence.thevenet@desy.de>
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

Successfully merging this pull request may close these issues.

2 participants