Commit 2493b139 authored by marc's avatar marc
Browse files

updated encoding and cli syntax

parent 1f1d016d
...@@ -60,13 +60,13 @@ class Measurements(): ...@@ -60,13 +60,13 @@ class Measurements():
''' '''
Note: in the stub dumpwide I added /bin/bash, otherwise you get an Exec format error. Note: in the stub dumpwide I added /bin/bash, otherwise you get an Exec format error.
''' '''
self.measurement = subprocess.Popen(self._tool, stdout=subprocess.PIPE) self.measurement = subprocess.Popen(self._tool,self._integrationTime, stdout=subprocess.PIPE)
self.measurement.wait() self.measurement.wait()
measResults = self.measurement.stdout measResults = self.measurement.stdout
""" Write results into file""" """ Write results into file"""
for line in measResults: for line in measResults:
self._outputFile.write(str(line)) self._outputFile.write(line.decode('utf-8'))
logging.info('Result written to file: {}'.format(self._outputFile.name)) logging.info('Result written to file: {}'.format(self._outputFile.name))
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
dumpwide: /home/marc/bin/dumpwide dumpwide: /home/marc/bin/dumpwide
int32bin: /usr/bin/int32bin int32bin: /usr/bin/int32bin
pulsarrecord: /usr/bin/pulsarrecord pulsarrecord: /usr/bin/pulsarrecord
rawrecord: /usr/bin/rawrecord rawrecord: /usr/bin/rawrecord
\ No newline at end of file
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