Remove unused swap_byte_order
@@ -75,25 +75,6 @@ def fill_poisson(map_in, mu, random_state="random-seed"):
map_in.fill_by_idx(idx, mu)
-def swap_byte_order(arr_in):
- """Swap the byte order of a numpy array to the native one.
-
- Parameters
- ----------
- arr_in : `~numpy.ndarray`
- Input array.
-
- Returns
- -------
- arr_out : `~numpy.ndarray`
- Array with native byte order.
- """
- if arr_in.dtype.byteorder not in ("=", "|"):
- return arr_in.byteswap().newbyteorder()
-
- return arr_in
-
-
def interp_to_order(interp):
"""Convert interpolation string to order."""
if isinstance(interp, int):
