From 0e22dc754de6bb69985bd8caf6986a9ec03af114 Mon Sep 17 00:00:00 2001 From: "J.A. de Jong - Redu-Sone B.V., ASCEE V.O.F." Date: Sat, 25 Nov 2023 15:01:40 +0100 Subject: [PATCH] Version bump with wrappers --- .gitignore | 1 + Cargo.toml | 2 +- noxfile.py | 14 ++++++++++++++ test/test_filter.py | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 noxfile.py diff --git a/.gitignore b/.gitignore index 09fa6be..745742c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /Cargo.lock __pycache__ python/lasprs/_lasprs* +.venv diff --git a/Cargo.toml b/Cargo.toml index 21d1811..50cb5cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lasprs" -version = "0.1.0" +version = "0.2.0" edition = "2021" authors = ["J.A. de Jong "] description = "Library for Acoustic Signal Processing (Rust edition, with optional Python bindings via pyo3)" diff --git a/noxfile.py b/noxfile.py new file mode 100644 index 0000000..fd85c8d --- /dev/null +++ b/noxfile.py @@ -0,0 +1,14 @@ +import nox + +@nox.session +def tests(session): + session.install('pytest') + session.install('numpy') + session.install('maturin') + session.run('maturin','dev') + session.run('pytest') + +#@nox.session +#def lint(session): +# session.install('flake8') +# session.run('flake8', '--import-order-style', 'google') diff --git a/test/test_filter.py b/test/test_filter.py index 6e42b84..f8df98e 100755 --- a/test/test_filter.py +++ b/test/test_filter.py @@ -43,7 +43,7 @@ def test_seriesbiquad(): def test_biquadbank(): """ - See if two filters + See if two filters with half gain produce the output=input """ input_ = np.array([1.0, 0, 0, 0, 0, 0, 0]) f1 = [1., 0, 0, 1, 0, 0]