unique_close

PlasmaCalcs.tools.arrays.unique_close(arr, *, rtol=1e-05, atol=1e-08)

returns unique values of arr, within relative tolerance rtol and absolute tolerance atol.

Like np.unique(arr), but it uses np.isclose to compare values, instead of exact equality.