From 8e86b7533c9e65873bb5fc28f976126507a4f31c Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 17 Oct 2012 14:30:02 -0400 Subject: [PATCH] cmd: flush stream in write_data(). --- doc/demo/cmd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/demo/cmd.py b/doc/demo/cmd.py index 6c476f1..b2be0a3 100755 --- a/doc/demo/cmd.py +++ b/doc/demo/cmd.py @@ -90,6 +90,7 @@ def write_data(stream, channels, data, physical=False): for row in range(data.shape[0]): stream.write('\t'.join(str(x) for x in data[row,:])) stream.write('\n') + stream.flush() class DataWriter (object): def __init__(self, stream, channels, physical=False): -- 2.26.2