Skip to content

Commit

Permalink
force dtype in memory-based merge
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed Dec 8, 2023
1 parent 2a86789 commit 5bc5a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spectral_cube/cube_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:])


Expand Down

0 comments on commit 5bc5a6c

Please sign in to comment.