diff options
author | Josh Blum | 2009-08-29 01:04:58 -0700 |
---|---|---|
committer | Josh Blum | 2009-08-29 01:04:58 -0700 |
commit | 576d3978c7fafe5d6727c77281e3aad6d92074d2 (patch) | |
tree | fde88d38dd92a79571d1960f8e1fb9debd05b903 /grc/base/Block.py | |
parent | cb794a7c8703ea06a9bce110fc1041140f25e8e6 (diff) | |
download | gnuradio-576d3978c7fafe5d6727c77281e3aad6d92074d2.tar.gz gnuradio-576d3978c7fafe5d6727c77281e3aad6d92074d2.tar.bz2 gnuradio-576d3978c7fafe5d6727c77281e3aad6d92074d2.zip |
Replaced TYPES in Port and Param with types parameter.
Replaced odict in options for storing options with a list.
Fix virtual port check in flow graph template.
Diffstat (limited to 'grc/base/Block.py')
-rw-r--r-- | grc/base/Block.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py index d2266e783..737010305 100644 --- a/grc/base/Block.py +++ b/grc/base/Block.py @@ -91,7 +91,7 @@ class Block(Element): 'hide': 'all', }) )) - for param in map(lambda n: self.get_parent().get_parent().Param(self, n), params): + for param in map(lambda n: self.get_parent().get_parent().Param(block=self, n=n), params): key = param.get_key() #test against repeated keys try: assert key not in self.get_param_keys() @@ -100,7 +100,7 @@ class Block(Element): self.get_params().append(param) #create the source objects self._sources = list() - for source in map(lambda n: self.get_parent().get_parent().Port(self, n, dir='source'), sources): + for source in map(lambda n: self.get_parent().get_parent().Port(block=self, n=n, dir='source'), sources): key = source.get_key() #test against repeated keys try: assert key not in self.get_source_keys() @@ -109,7 +109,7 @@ class Block(Element): self.get_sources().append(source) #create the sink objects self._sinks = list() - for sink in map(lambda n: self.get_parent().get_parent().Port(self, n, dir='sink'), sinks): + for sink in map(lambda n: self.get_parent().get_parent().Port(block=self, n=n, dir='sink'), sinks): key = sink.get_key() #test against repeated keys try: assert key not in self.get_sink_keys() |