Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
marc
measurements
Commits
2493b139
Commit
2493b139
authored
Oct 29, 2017
by
marc
Browse files
updated encoding and cli syntax
parent
1f1d016d
Changes
2
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
2493b139
...
...
@@ -60,13 +60,13 @@ class Measurements():
'''
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
()
measResults
=
self
.
measurement
.
stdout
""" Write results into file"""
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
))
...
...
measurements.ini
View file @
2493b139
...
...
@@ -2,4 +2,4 @@
dumpwide:
/home/marc/bin/dumpwide
int32bin:
/usr/bin/int32bin
pulsarrecord:
/usr/bin/pulsarrecord
rawrecord:
/usr/bin/rawrecord
rawrecord:
/usr/bin/rawrecord
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment