From 5bc5a6c96d9fb128d71642f12c6b030836579b21 Mon Sep 17 00:00:00 2001 From: "Adam Ginsburg (keflavich)" Date: Thu, 7 Dec 2023 20:09:53 -0500 Subject: [PATCH] force dtype in memory-based merge --- spectral_cube/cube_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spectral_cube/cube_utils.py b/spectral_cube/cube_utils.py index 6e7c40a59..cc991e5e4 100644 --- a/spectral_cube/cube_utils.py +++ b/spectral_cube/cube_utils.py @@ -972,8 +972,8 @@ def log_(x): output_footprint = np.memmap(ntf2, mode='w+', shape=shape_opt, dtype=dtype) else: log_("Using memory") - output_array = np.zeros(shape_opt) - output_footprint = np.zeros(shape_opt) + output_array = np.zeros(shape_opt, dtype=dtype) + output_footprint = np.zeros(shape_opt, dtype=dtype) mask_opt = np.zeros(shape_opt[1:])