From 1706f379dee5272ac518dd14d0f7ce5d5f33469f Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Tue, 26 Mar 2019 09:29:06 +0100 Subject: [PATCH] Corrected example.py so that it also works with Python 2. Clarified the README to highlight that the cmsisdsp Python package is installed in editable mode when using the command line of the README file. --- PythonWrapper/README.md | 2 +- PythonWrapper/example.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PythonWrapper/README.md b/PythonWrapper/README.md index af2d0563..1cb13548 100644 --- a/PythonWrapper/README.md +++ b/PythonWrapper/README.md @@ -44,7 +44,7 @@ Install some packages > pip instal scipy > pip instal matplotplib -Now, you can install the cmsisdsp package: +Now, you can install the cmsisdsp package in editable mode: > pip install -e "Path To The Folder Containing setup.py" diff --git a/PythonWrapper/example.py b/PythonWrapper/example.py index 26d83822..80fd87aa 100644 --- a/PythonWrapper/example.py +++ b/PythonWrapper/example.py @@ -70,7 +70,7 @@ nbSamples=sigQ31.shape[0] # Here we demonstrate how we can process a long sequence of samples per block # and thus check that the state of the biquad is well updated and preserved # between the calls. -half = round(nbSamples / 2) +half = int(round(nbSamples / 2)) res2a=dsp.arm_biquad_cascade_df1_q31(biquadQ31,sigQ31[1:half]) res2b=dsp.arm_biquad_cascade_df1_q31(biquadQ31,sigQ31[half+1:nbSamples]) res2=Q31toF32(np.hstack((res2a,res2b)))