PlasmaControl / DESC

Stellarator Equilibrium and Optimization Suite
MIT License
96 stars 26 forks source link

util function to change the resolution of a spline #849

Open ddudt opened 9 months ago

ddudt commented 9 months ago

Splines don't have a proper basis class, but it would be helpful to have a function to effectively change their "resolution". Something like: new_values, new_knots = change_spline_resolution(old_values, old_knots, method)

This is effectively already done in OmnigenousField.change_resolution but should be a standalone function that can be used elsewhere.

dpanici commented 2 months ago

resample instead of change_resolution