Commit 068b31b3 authored by Hong Chen's avatar Hong Chen
Browse files

Minor bug fix; example data files for demo

parent 76a43291
No related merge requests found
Showing with 4 additions and 2 deletions
+4 -2
......@@ -8,7 +8,7 @@ NVFLAGS = --ptxas-options=-v --compiler-bindir=/usr/bin/g77 -O3
# linker options
LFLAGS_CUFFT = -lcufft
LFLAGS_PGPLOT = -L/opt/vegas/pgplot -lpgplot -lcpgplot -lX11
LFLAGS_PGPLOT = -L/usr/lib64/pgplot -lpgplot -lcpgplot -lX11
LFLAGS_MATH = -lm
# bin directory
......
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
......@@ -28,12 +28,14 @@ if __name__ == '__main__':
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind((udp_ip, udp_port))
#print udp_ip, udp_port
for j in range(10):
arr0=np.array([])
filename='file'+'{0:04}'.format(j)
for i in range(35000):
data, addr = sock.recvfrom(size)
if mod(i,50)==0:
#print i, i%50
if i%500==0:
print 'Grabbed', i, 'th data from', addr
arr = np.array(data)
arr0 = np.append(arr0, arr)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment