fixeria has uploaded this change for review.

View Change

transmitter/txtime_bursts_tagger.py: fix TypeError

Convert from Numpy specific numpy.uint64 type to int for function
pmt.from_uint64(), to prevent TypeError.

Change-Id: I05499d9318b7b87544cfd426fa825eb2b9e77e28
---
M python/transmitter/txtime_bursts_tagger.py
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/gr-gsm refs/changes/73/27573/1
diff --git a/python/transmitter/txtime_bursts_tagger.py b/python/transmitter/txtime_bursts_tagger.py
index 952c8d1..e3ab6e2 100644
--- a/python/transmitter/txtime_bursts_tagger.py
+++ b/python/transmitter/txtime_bursts_tagger.py
@@ -77,7 +77,7 @@
txtime_fracs = txtime_final-int(txtime_final)
#print "txtime_secs",txtime_secs,"txtime_fracs",txtime_fracs
tags_dict = pmt.dict_add(pmt.make_dict(), pmt.intern("tx_time"), pmt.make_tuple(pmt.from_uint64(txtime_secs),pmt.from_double(txtime_fracs)))
- tags_dict = pmt.dict_add(tags_dict, pmt.intern("fn"), pmt.from_uint64(fn))
+ tags_dict = pmt.dict_add(tags_dict, pmt.intern("fn"), pmt.from_uint64(fn.item()))
new_msg = pmt.cons(tags_dict, pmt.cdr(msg))
self.message_port_pub(pmt.intern("bursts"), new_msg)


To view, visit change 27573. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: gr-gsm
Gerrit-Branch: master
Gerrit-Change-Id: I05499d9318b7b87544cfd426fa825eb2b9e77e28
Gerrit-Change-Number: 27573
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-MessageType: newchange