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
e5962fc5
Commit
e5962fc5
authored
Oct 28, 2017
by
marc
Browse files
classname using Upper case
parent
10c1906b
Changes
1
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
e5962fc5
...
...
@@ -67,9 +67,9 @@ class measurements():
self
.
_outputFile
=
outputFile
self
.
_staticMetaData
=
metaData
self
.
_dynamicMetaData
=
None
logging
.
info
(
'Used measument tool set to: {}'
.
format
(
self
.
_tool
))
logging
.
info
(
'Used measu
re
ment tool set to: {}'
.
format
(
self
.
_tool
))
logging
.
info
(
'Integration time set to: {}'
.
format
(
self
.
_integrationTime
))
logging
.
info
(
'Output file is: {}'
.
format
(
self
.
_outputFile
))
logging
.
info
(
'Output file is: {}'
.
format
(
self
.
_outputFile
.
name
))
'''
Compile CLI and execute command
...
...
@@ -86,13 +86,14 @@ class measurements():
""" Write results into file"""
for
line
in
measResults
:
self
.
_outputFile
.
write
(
str
(
line
))
logging
.
info
(
'Result written to file: {}'
.
format
(
self
.
_outputFile
.
name
))
if
__name__
==
'__main__'
:
myMeas
=
measurements
()
myMeas
.
getMetaData
()
measnum
=
123
measFile
=
open
(
'/tmp/DT-'
+
'{:03d}'
.
format
(
measnum
)
+
"-"
+
time
.
strftime
(
"%Y%m%d"
)
+
".dat"
,
'w'
)
logging
.
info
(
"Output to file: {}"
.
format
(
measFile
))
for
tool
in
myMeas
.
getTools
():
logging
.
info
(
'Defined tools in ini file are: {}'
.
format
(
tool
))
...
...
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