slicersim.utils

slicersim.utils#

Miscellaneous functions.

Functions

bin_array

Bin an N-D array by a given factor, using a reduction function.

complete_dims

Complete the dimensions of an array with trailing length-1 axes.

inspect_func

Inspect the parameters of a function.

integ_gaussian1D_erf

Return a 1D Gaussian integrated over pixels (exact).

integ_gaussian2D_erf

Return a 2D Gaussian integrated over pixels (exact).

mesh_kwargs

Create a dataframe with all parameter combinations.

recursive_get

Recursively get a key from a nested dictionary.

restride

Restride an N-D array into bins, without copying.

unbin_array

Unbin (by repetition) an N-D array by a given factor.