From 3ea0279d3b53d8d8ab128e6fee3877933f1249ce Mon Sep 17 00:00:00 2001 From: AJTDaedalus <67528354+AJTDaedalus@users.noreply.github.com> Date: Fri, 3 Feb 2023 07:33:16 -0600 Subject: [PATCH] Update CreateTensorPileupFromCffi.py Changed deprecated np.int to int. --- preprocess/CreateTensorPileupFromCffi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preprocess/CreateTensorPileupFromCffi.py b/preprocess/CreateTensorPileupFromCffi.py index 5c2832c..e609c23 100644 --- a/preprocess/CreateTensorPileupFromCffi.py +++ b/preprocess/CreateTensorPileupFromCffi.py @@ -138,8 +138,8 @@ def _plp_data_to_numpy(plp_data, n_rows, gvcf=False): """ ffi = libclair3.ffi - size_sizet = np.dtype(np.int).itemsize - _dtype = np.int + size_sizet = np.dtype(int).itemsize + _dtype = int np_counts = np.frombuffer(ffi.buffer( plp_data.matrix, size_sizet * plp_data.n_cols * n_rows), dtype=_dtype