From 95cf83f01fee57e53adfc60f198f2923f5104261 Mon Sep 17 00:00:00 2001 From: jiafuei <30773478+jiafuei@users.noreply.github.com> Date: Wed, 9 Aug 2023 20:05:23 +0800 Subject: [PATCH] fix: upgrade vmd-rs to v0.2.0 --- Cargo.lock | 6 +++--- Cargo.toml | 5 +++-- src/lib.rs | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1efe872..518f3bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1169,9 +1169,9 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "vmd-rs" -version = "0.1.1" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a54d05f91425b2d5e93b35f93c98900ffad7af58d19d3dbdf0d34dcf8019ca53" +checksum = "d613b5ba7727e042fe7daa2198519db4550f560428b48887b0b5c0b822bacd20" dependencies = [ "ndarray", "ndarray-rand", @@ -1183,7 +1183,7 @@ dependencies = [ [[package]] name = "vmdrs-py" -version = "0.1.1" +version = "0.2.0" dependencies = [ "blas-src", "numpy", diff --git a/Cargo.toml b/Cargo.toml index 48a4b4a..4a1f655 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,13 @@ [package] name = "vmdrs-py" -version = "0.1.1" +version = "0.2.0" edition = "2021" authors = ["jiafuei"] repository = "https://github.com/jiafuei/vmdrs-py" description = "Example Python project to use the Rust vmd-rs crate" license-file = "LICENSE.md" +keywords = ["signal-processing", "vmd", "signal-analysis", "python"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] @@ -38,4 +39,4 @@ openblas-src = { git = "https://github.com/jiafuei/openblas-src.git", branch = " [dependencies] numpy = "0.19.0" pyo3 = "0.19.0" -vmd-rs = { version = "0.1.1", features = ["blas"] } +vmd-rs = { version = "0.2.0", features = ["blas"] } diff --git a/src/lib.rs b/src/lib.rs index 813aefc..fe11482 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,8 +27,8 @@ use vmd_rs::vmd; fn VMD( py: Python<'_>, input: PyReadonlyArray1, - alpha: i32, - tau: i32, + alpha: f64, + tau: f64, K: usize, DC: i32, init: i32,