From b8b72f2c6945c87843795c0f963324febedcef86 Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Tue, 14 Jun 2022 08:10:10 +0200 Subject: [PATCH] Corrected SDF example documentation to use CMSIS-DSP Python wrapper. --- SDFTools/documentation/example1.md | 6 +----- SDFTools/documentation/example3.md | 4 ++-- SDFTools/documentation/example4.md | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/SDFTools/documentation/example1.md b/SDFTools/documentation/example1.md index a54a53f9..2f493dd1 100755 --- a/SDFTools/documentation/example1.md +++ b/SDFTools/documentation/example1.md @@ -26,11 +26,7 @@ Let's analyze the file `graph.py` in the `example1` folder. This file is describ First, we add some path so that the example can find the sdf packages when run from example1 folder. ```python -import sys - -sys.path.append("../..") - -from sdf import * +from cmsisdsp.sdf.scheduler import * ``` diff --git a/SDFTools/documentation/example3.md b/SDFTools/documentation/example3.md index 8bb0d001..93d3a186 100755 --- a/SDFTools/documentation/example3.md +++ b/SDFTools/documentation/example3.md @@ -103,12 +103,12 @@ This node is provided in sdf/nodes/cpp so no need to define it. You can just use It can be used by just doing in your AppNodes.h file : ```c++ -#include "CFFT_F32.h" +#include "CFFT.h" ``` From Python side it would be: ```python -from sdf.nodes.py.CFFTF32 import * +from cmsisdsp.sdf.nodes.CFFT import * ``` diff --git a/SDFTools/documentation/example4.md b/SDFTools/documentation/example4.md index 22690dac..45a154aa 100755 --- a/SDFTools/documentation/example4.md +++ b/SDFTools/documentation/example4.md @@ -30,7 +30,7 @@ This file is defining the new nodes which were used in `graph.py`. In `graph.py` In `appnodes.py` we including new kind of nodes for simulation purpose: ```python -from sdf.nodes.py.CFFTF32 import * +from cmsisdsp.sdf.nodes.CFFT import * ```