[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/10: gr-zeromq: fix python examples
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/10: gr-zeromq: fix python examples |
Date: |
Fri, 28 Aug 2015 19:19:49 +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 8cf04fb429485d475acb6db4462e46d5dc218adf
Author: Johannes Schmitz <address@hidden>
Date: Thu Aug 6 10:41:07 2015 +0200
gr-zeromq: fix python examples
---
gr-zeromq/examples/python/client.py | 4 ++--
gr-zeromq/examples/python/gui.py | 4 ++--
gr-zeromq/examples/python/server.py | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/gr-zeromq/examples/python/client.py
b/gr-zeromq/examples/python/client.py
index 7663f9a..a63a77a 100755
--- a/gr-zeromq/examples/python/client.py
+++ b/gr-zeromq/examples/python/client.py
@@ -53,8 +53,8 @@ class top_block(gr.top_block):
#self.zmq_source = zeromq.req_source(gr.sizeof_float, 1, source_adr)
#self.zmq_source = zeromq.pull_source(gr.sizeof_float, 1, source_adr)
self.zmq_source = zeromq.sub_source(gr.sizeof_float, 1, source_adr)
- #self.zmq_probe = zeromq.push_sink(gr.sizeof_float,probe_adr)
- self.zmq_probe = zeromq.pub_sink(gr.sizeof_float,probe_adr)
+ #self.zmq_probe = zeromq.push_sink(gr.sizeof_float, 1, probe_adr)
+ self.zmq_probe = zeromq.pub_sink(gr.sizeof_float, 1, probe_adr)
# connects
self.connect(self.zmq_source, self.zmq_probe)
diff --git a/gr-zeromq/examples/python/gui.py b/gr-zeromq/examples/python/gui.py
index 91223dd..ffdfdc2 100755
--- a/gr-zeromq/examples/python/gui.py
+++ b/gr-zeromq/examples/python/gui.py
@@ -130,13 +130,13 @@ class gui(QtGui.QMainWindow):
self.plot_data(self.gui.qwtPlotClient, samples)
def set_waveform(self, waveform_str):
- self.rpc_mgr_server.request("set_waveform",str(waveform_str))
+ self.rpc_mgr_server.request("set_waveform",[str(waveform_str)])
def set_gain(self, gain):
self.rpc_set_gain(gain)
def rpc_set_gain(self, gain):
- self.rpc_mgr_server.request("set_k",gain)
+ self.rpc_mgr_server.request("set_k",[gain])
###############################################################################
# Options Parser
diff --git a/gr-zeromq/examples/python/server.py
b/gr-zeromq/examples/python/server.py
index 358b66c..e3b7c9b 100755
--- a/gr-zeromq/examples/python/server.py
+++ b/gr-zeromq/examples/python/server.py
@@ -59,8 +59,8 @@ class top_block(gr.top_block):
#self.zmq_sink = zeromq.rep_sink(gr.sizeof_float, 1, sink_adr)
self.zmq_sink = zeromq.pub_sink(gr.sizeof_float, 1, sink_adr)
#self.zmq_sink = zeromq.push_sink(gr.sizeof_float, 1, sink_adr)
- #self.zmq_probe = zeromq.push_sink(gr.sizeof_float, probe_adr)
- self.zmq_probe = zeromq.pub_sink(gr.sizeof_float, probe_adr)
+ #self.zmq_probe = zeromq.push_sink(gr.sizeof_float, 1, probe_adr)
+ self.zmq_probe = zeromq.pub_sink(gr.sizeof_float, 1, probe_adr)
#self.null_sink = blocks.null_sink(gr.sizeof_float)
# connects
- [Commit-gnuradio] [gnuradio] branch maint updated (22e2f1a -> d063b05), git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 07/10: Merge remote-tracking branch 'geiger/fix_pfb_arb_resampler_fff' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 02/10: grc: fix for reverted commit f184ccf 'better Popen argument handling...', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 04/10: Bring fix from other pfb_arb_resampler_* variants, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 05/10: cmake: Fix warning related to GrSetupQt4 in modern CMake, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 03/10: grc: fix printing empty traceback when a block is missing, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 09/10: Fixes Coverity Defect 1229872: Memory leak in `atsci_equalizer_lms2` DTOR, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 01/10: gr-zeromq: fix python examples,
git <=
- [Commit-gnuradio] [gnuradio] 08/10: Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 10/10: Merge remote-tracking branch 'bhilburn/cov1229872' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 06/10: grc/blocks: Fix XML RPC server to allow proper flowgraph termination, git, 2015/08/28