summaryrefslogtreecommitdiff
path: root/grc/python
diff options
context:
space:
mode:
Diffstat (limited to 'grc/python')
-rw-r--r--grc/python/Connection.py2
-rw-r--r--grc/python/Port.py1
-rw-r--r--grc/python/flow_graph.tmpl2
3 files changed, 2 insertions, 3 deletions
diff --git a/grc/python/Connection.py b/grc/python/Connection.py
index 0a6cf5fa46..822876a0ae 100644
--- a/grc/python/Connection.py
+++ b/grc/python/Connection.py
@@ -38,8 +38,8 @@ class Connection(_Connection, _GUIConnection):
Validate the connections.
The ports must match in io size.
"""
+ _Connection.validate(self)
source_size = Constants.TYPE_TO_SIZEOF[self.get_source().get_type()] * self.get_source().get_vlen()
sink_size = Constants.TYPE_TO_SIZEOF[self.get_sink().get_type()] * self.get_sink().get_vlen()
if source_size != sink_size:
self.add_error_message('Source IO size "%s" does not match sink IO size "%s".'%(source_size, sink_size))
- _Connection.validate(self)
diff --git a/grc/python/Port.py b/grc/python/Port.py
index 4cd07a9721..765e1d7423 100644
--- a/grc/python/Port.py
+++ b/grc/python/Port.py
@@ -140,7 +140,6 @@ class Port(_Port, _GUIPort):
Handle the port cloning for virtual blocks.
"""
if self.is_type_empty():
- self._type_evaluated = None
try: #clone type and vlen
source = self.resolve_empty_type()
self._type = str(source.get_type())
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index 26b1035ea5..2a6ce7233a 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -224,7 +224,7 @@ gr.io_signaturev($(len($io_sigs)), $(len($io_sigs)), [$(', '.join($size_strs))])
#set global $sink = $con.get_sink()
##resolve virtual sources to the actual sources
#if $source.get_parent().is_virtual_source()
- #set $source = $source.resolve_virtual_source()
+ #set global $source = $source.resolve_virtual_source()
#end if
##do not generate connections with virtual sinks
#if not $sink.get_parent().is_virtual_sink()