From c7a13b00329bb5f24405621dfe8a2fb04e49dcfd Mon Sep 17 00:00:00 2001 From: MARCHAND MANON Date: Tue, 15 Oct 2024 12:33:21 +0200 Subject: [PATCH] fix: switch to Array vendored by numpy crate to avoid versions mismatchs --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 57213e4..7c823dd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,12 +1,13 @@ use std::{f64::consts::FRAC_PI_3, ops::Range}; -use ndarray::Array; #[cfg(not(target_arch = "wasm32"))] use num_threads::num_threads; use numpy::{ IntoPyArray, Ix2, Ix3, PyArray1, PyArray2, PyArray3, PyArrayDyn, PyArrayMethods, PyReadonlyArray1, PyReadonlyArray2, PyReadonlyArrayDyn, PyUntypedArrayMethods, }; +use numpy::ndarray::Array; + use pyo3::{ exceptions::{PyIOError, PyValueError}, prelude::{pymodule, Bound, PyModule, PyResult, Python},