diff options
-rw-r--r--[-rwxr-xr-x] | gr-digital/python/digital/qa_constellation.py | 5 | ||||
-rwxr-xr-x | gr-utils/python/utils/grcc | 1 | ||||
-rw-r--r-- | gr-wxgui/python/wxgui/plotter/grid_plotter_base.py | 5 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gr-digital/python/digital/qa_constellation.py b/gr-digital/python/digital/qa_constellation.py index 9e7e691d5c..83a875af4b 100755..100644 --- a/gr-digital/python/digital/qa_constellation.py +++ b/gr-digital/python/digital/qa_constellation.py @@ -202,7 +202,8 @@ class mod_demod(gr.hier_block2): # TX self.constellation = constellation self.differential = differential - self.blocks = [self] + import weakref + self.blocks = [weakref.proxy(self)] # We expect a stream of unpacked bits. # First step is to pack them. self.blocks.append(blocks.unpacked_to_packed_bb(1, gr.GR_MSB_FIRST)) @@ -242,7 +243,7 @@ class mod_demod(gr.hier_block2): # connect to block output check_index = len(self.blocks) self.blocks = self.blocks[:check_index] - self.blocks.append(self) + self.blocks.append(weakref.proxy(self)) self.connect(*self.blocks) diff --git a/gr-utils/python/utils/grcc b/gr-utils/python/utils/grcc index 7e5665dc05..0477b813f6 100755 --- a/gr-utils/python/utils/grcc +++ b/gr-utils/python/utils/grcc @@ -36,6 +36,7 @@ class grcc: self.fg = self.platform.get_new_flow_graph() self.fg.import_data(data) + self.fg.grc_file_path = os.path.abspath(grcfile) self.fg.validate() self.gen = self.platform.get_generator()(self.fg, out_dir) diff --git a/gr-wxgui/python/wxgui/plotter/grid_plotter_base.py b/gr-wxgui/python/wxgui/plotter/grid_plotter_base.py index a492539575..e1ac311deb 100644 --- a/gr-wxgui/python/wxgui/plotter/grid_plotter_base.py +++ b/gr-wxgui/python/wxgui/plotter/grid_plotter_base.py @@ -89,7 +89,10 @@ class grid_plotter_base(plotter_base): self.unlock() def call_freq_callback(self, coor): - x, y = self._point_label_coordinate + try: + x, y = self._point_label_coordinate + except: + return if x < self.padding_left or x > self.width-self.padding_right: return if y < self.padding_top or y > self.height-self.padding_bottom: return #scale to window bounds |