summaryrefslogtreecommitdiff
path: root/gr-analog/grc
diff options
context:
space:
mode:
authorMarc L <marcll@vt.edu>2018-11-04 00:49:10 -0400
committerMarcus Müller <marcus@hostalia.de>2018-11-09 20:39:14 +0100
commit2c2e77f61c4652c3dfe8d0d6a13d0556b331cf8d (patch)
tree83bc836db6392d00846e4221bf4ea0a8036d7cab /gr-analog/grc
parentca12b82fdd8216e4a3103fb531e6db4242c4f652 (diff)
gr-analog: fixed analog_random_source bug
A bug was introduced in recently merged PR #2095, the ending parenthesis was put in the wrong spot. I also added a little bit of documentation while I was at it, making sure people know this block isn't really a block but is a wrapper for Vector Source. If anyone has some time (@btashton perhaps), it might be worth checking the other files modified in #2095 to see if any other ending parenthesis were put in the wrong spot.
Diffstat (limited to 'gr-analog/grc')
-rw-r--r--gr-analog/grc/analog_random_source_x.block.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/gr-analog/grc/analog_random_source_x.block.yml b/gr-analog/grc/analog_random_source_x.block.yml
index 62679decd0..20fb31932f 100644
--- a/gr-analog/grc/analog_random_source_x.block.yml
+++ b/gr-analog/grc/analog_random_source_x.block.yml
@@ -37,11 +37,15 @@ templates:
from gnuradio import blocks
import numpy
make: blocks.vector_source_${type.fcn}(list(map(int, numpy.random.randint(${min}, ${max},
- ${num_samps})), ${repeat}))
+ ${num_samps}))), ${repeat})
documentation: |-
Generate num samples of random numbers of [min, max). Repeat samples if specified.
Ex: With min=0 and max=2, the sequence 01110101... will be generated.
+
+ This block wraps Vector Source, i.e. it creates a vector source using a vector filled with values returned from calling np.random.randint(min, max, num_samps) once
+ If you would like a traditional random number generator, use Random Uniform Source instead
+
file_format: 1