commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 04/08: grc: rewrite block before adding con


From: git
Subject: [Commit-gnuradio] [gnuradio] 04/08: grc: rewrite block before adding connections during flowgraph import
Date: Tue, 5 Apr 2016 23:29:12 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit bc36ab06bb904dfda0a65b0181648ef5cd23920a
Author: Sebastian Koslowski <address@hidden>
Date:   Tue Apr 5 10:28:37 2016 +0200

    grc: rewrite block before adding connections during flowgraph import
    
    E.g.: Not all connections to a block with nports controlled via a
    parameter block could be restored from file.
    
    report by Johannes Demel
    fixes #37 on github
---
 grc/base/FlowGraph.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/grc/base/FlowGraph.py b/grc/base/FlowGraph.py
index 072414a..0398dfd 100644
--- a/grc/base/FlowGraph.py
+++ b/grc/base/FlowGraph.py
@@ -375,6 +375,8 @@ class FlowGraph(Element):
 
             block.import_data(block_n)
 
+        self.rewrite()  # evaluate stuff like nports before adding connections
+
         # build the connections
         def verify_and_get_port(key, block, dir):
             ports = block.get_sinks() if dir == 'sink' else block.get_sources()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]