From: W. Trevor King Date: Wed, 17 Oct 2012 18:30:02 +0000 (-0400) Subject: cmd: flush stream in write_data(). X-Git-Tag: 0.6~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e86b7533c9e65873bb5fc28f976126507a4f31c;p=pycomedi.git cmd: flush stream in write_data(). --- 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):