Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Odzerikho committed Jul 1, 2011
1 parent 431cf6d commit 82e81d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pygui.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#"""
2#"""
#This demo demonstrates how to draw a dynamic mpl (matplotlib)
#plot in a wxPython application.

Expand Down Expand Up @@ -101,7 +101,7 @@ def __init__(self):
self.time = np.array([])

def update(self, readcmd, ch1, ch2, pulse_period, Ach1, Ach2, raw_filename):
raw = open(raw_filename, "w")
#raw = open(raw_filename, "w")
fromfile = tempfile.mktemp()
normcmd = os.path.normpath(readcmd)
args = [normcmd, fromfile]
Expand All @@ -127,11 +127,11 @@ def update(self, readcmd, ch1, ch2, pulse_period, Ach1, Ach2, raw_filename):
lastt=self.time[l-1]

self.time = np.append(self.time, [lastt + pulse_period])

rawin = open(fromfile, "r")
raw.write(rawin.read())
rawin.close()
raw.close()
t.tofile(raw, dtype=pylab.int16)
#rawin = open(fromfile, "r")
#raw.write(rawin.read())
#rawin.close()
#raw.close()
os.remove(fromfile)
return [self.ch1, self.ch2, self.time]

Expand Down

0 comments on commit 82e81d8

Please sign in to comment.