get_energy_interpolator

alternate Linear scipy interpolator on egrid; tricubic is preferred for screening accuracy. Use get_energy_interpolator_tricubic instead.

compute.get_energy_interpolator(
    egrid,
    neighborhood_size=4,
    extent_x=1.0,
    extent_y=1.0,
    extent_z=1.0,
)

Build a scipy RegularGridInterpolator for a 3D energy grid, filling NaNs from local neighborhoods.

Parameters

Name Type Description Default
egrid a 3D numpy array representing a grid of energy values with shape (n_x, n_y, n_z) required
neighborhood_size size of neighborhood to check in each direction (default: 4) 4

Returns

Name Type Description
a RegularGridInterpolator object for the 3D energy grid