From d0208ff7d06637ee4d3b1e781baace8aeea1e152 Mon Sep 17 00:00:00 2001 From: jankoslavic Date: Thu, 7 Jan 2021 07:44:44 +0100 Subject: [PATCH] preparation for v0.4 release and added test for odd number length in pseudorandom --- pyExSi/__init__.py | 2 +- tests/test_basic.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyExSi/__init__.py b/pyExSi/__init__.py index a213c0b..de94c59 100644 --- a/pyExSi/__init__.py +++ b/pyExSi/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.3' +__version__ = '0.4' from .signals import * diff --git a/tests/test_basic.py b/tests/test_basic.py index 1b6e465..f912ccb 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -177,6 +177,9 @@ def test_data_signals(): results[key], results_ref[key], decimal=5, err_msg=f'Function: {key}' ) + # pseudo random odd number + np.testing.assert_equal(len(es.pseudo_random(N=N+1, rg=rg)), N+1) + if __name__ == "__main__": test_data_nonstationarity()