From a48e8a08521723b36b7e808a4fcc587c54268acb Mon Sep 17 00:00:00 2001 From: Michael Dryden <mdryden@chem.utoronto.ca> Date: Sat, 17 May 2014 20:34:00 -0400 Subject: [PATCH] Removed superfluous codde. --- dstatInterface/dstat_comm.py | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/dstatInterface/dstat_comm.py b/dstatInterface/dstat_comm.py index 6b7e8bf..604bf4a 100644 --- a/dstatInterface/dstat_comm.py +++ b/dstatInterface/dstat_comm.py @@ -109,8 +109,7 @@ class Experiment: capture_proc = dataCapture(self.ser, (recv_p, send_p)) capture_proc.start() send_p.close() #pipe won't trip EOFError unless all connections are closed - #capture_proc.join() - + updatetime = 0 while True: @@ -127,33 +126,6 @@ class Experiment: except EOFError: print "empty" break - - - """def data_handler(self): - while True: - for line in self.ser: - if line.startswith('B'): - inputdata = self.ser.read(size=6) #uint16 + int32 - voltage, current = struct.unpack('<Hl', inputdata) - - self.data[0].append((voltage-32768)*3000./65536) - self.data[1].append(current*(1.5/self.gain/8388607)) - - self.plot.updateline(self, 0) - - if self.update: - if self.updatecounter == self.updatelimit: - self.plot.redraw() - self.updatecounter = 0 - - else: - self.updatecounter +=1 - - elif line.lstrip().startswith("no"): - self.ser.flushInput() - break - - break""" def data_postprocessing(self): pass -- GitLab