Skip to content
This repository was archived by the owner on Jul 16, 2019. It is now read-only.

Commit 265316e

Browse files
committed
Remove unused variable
1 parent f25137c commit 265316e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/spead.py

-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,6 @@ def __init__(self, ip, port, rate=None):
747747
self._tx_ip_port = (ip, port)
748748
self._rate = rate
749749
self._last_time = time.time()
750-
self._carry_wait = 0.0
751750

752751
def write(self, data):
753752
self._udp_out.sendto(data, self._tx_ip_port)

tests/spead_example03.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import logging
44
import sys
55

6-
logging.basicConfig(level=logging.INFO)
6+
#logging.basicConfig(level=logging.INFO)
77
PORT = 8888
88

99

@@ -28,7 +28,7 @@ def receive():
2828

2929
def transmit():
3030
print 'TX: Initializing...'
31-
tx = spead.Transmitter(spead.TransportUDPtx('127.0.0.1', PORT))
31+
tx = spead.Transmitter(spead.TransportUDPtx('127.0.0.1', PORT, rate=1e9))
3232
ig = spead.ItemGroup()
3333

3434
ig.add_item(name='Var1', description='Description for Var1',
@@ -38,9 +38,9 @@ def transmit():
3838
ig['Var1'] = (4,5,6)
3939
tx.send_heap(ig.get_heap())
4040

41+
data = numpy.arange(100000*4000).astype(numpy.uint32); data.shape = (100000,4000)
4142
ig.add_item(name='Var2', description='Description for Var2',
42-
shape=[100,100], fmt=spead.mkfmt(('u',32)))
43-
data = numpy.arange(100*100); data.shape = (100,100)
43+
shape=[100000,4000], ndarray=data)
4444
ig['Var2'] = data
4545
tx.send_heap(ig.get_heap())
4646

0 commit comments

Comments
 (0)