Skip to content

Commit

Permalink
SCSB-93: Changes to fix errors expected from Numpy 2.0 (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-goldman authored Sep 18, 2023
1 parent 96ce1e3 commit 9c487b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drizzlepac/haputils/cell_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,8 +1662,8 @@ def fill_row_k(imin, imax, k, S, J, sum_x, sum_x_sq, N):
fill_row_k(i + 1, imax, k, S, J, sum_x, sum_x_sq, N)

def fill_dp_matrix(data, S, J, K, N):
sum_x = np.zeros(N, dtype=np.float_)
sum_x_sq = np.zeros(N, dtype=np.float_)
sum_x = np.zeros(N, dtype=np.float64)
sum_x_sq = np.zeros(N, dtype=np.float64)

# median. used to shift the values of x to improve numerical stability
shift = data[N // 2]
Expand Down Expand Up @@ -1702,7 +1702,7 @@ def ckmeans(data, n_clusters):
data.sort()
n = len(data)

S = np.zeros((n_clusters, n), dtype=np.float_)
S = np.zeros((n_clusters, n), dtype=np.float64)

J = np.zeros((n_clusters, n), dtype=np.uint64)

Expand Down

0 comments on commit 9c487b4

Please sign in to comment.