Import: Difference between revisions
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
== Example Flowgraph == | == Example Flowgraph == | ||
In the following flowgraph, we used the Import block to import fftpack from scipy (the argument to the block is 'from scipy import fftpack'). fftpack is then used to set the variable taps as 'fftpack.ifftshift(fftpack.ifft([tap3, tap4, 1.0, tap1, tap2]))' | |||
[[File:Import_example.PNG]] | |||
== Source Files == | == Source Files == |
Revision as of 07:21, 21 January 2022
Import additional python modules into the namespace.
Examples:
from gnuradio.filter import firdes
import math,cmath
from math import pi
Parameters
- Import
- Takes the import string as input e.g. (import math)
Example Flowgraph
In the following flowgraph, we used the Import block to import fftpack from scipy (the argument to the block is 'from scipy import fftpack'). fftpack is then used to set the variable taps as 'fftpack.ifftshift(fftpack.ifft([tap3, tap4, 1.0, tap1, tap2]))'