diff options
author | Ron Economos <w6rz@comcast.net> | 2019-01-14 23:40:01 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-01-15 09:50:49 -0800 |
commit | aa241dd04f8d931a997df40068464e690c0015af (patch) | |
tree | 1409251d4c3e03646b399a78d3e2c8d06203782c /gr-digital/python | |
parent | 1e87cd7c16aed3c90e5bbcfbd0c9392c0fcf999e (diff) |
digital: Fix Python 3 divide for tagged streams.
Diffstat (limited to 'gr-digital/python')
-rw-r--r-- | gr-digital/python/digital/utils/tagged_streams.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-digital/python/digital/utils/tagged_streams.py b/gr-digital/python/digital/utils/tagged_streams.py index 68267a293e..78078e6f56 100644 --- a/gr-digital/python/digital/utils/tagged_streams.py +++ b/gr-digital/python/digital/utils/tagged_streams.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2013 Free Software Foundation, Inc. +# Copyright 2013,2019 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -33,9 +33,9 @@ def make_lengthtags(lengths, offsets, tagname='length', vlen=1): assert(len(offsets) == len(lengths)) for offset, length in zip(offsets, lengths): tag = gr.tag_t() - tag.offset = offset / vlen + tag.offset = offset // vlen tag.key = pmt.string_to_symbol(tagname) - tag.value = pmt.from_long(length / vlen) + tag.value = pmt.from_long(length // vlen) tags.append(tag) return tags |