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
dtObsGUI
Commits
2974a6f8
Commit
2974a6f8
authored
Oct 09, 2017
by
marc
Browse files
minor bugfix output File
parent
5d38003c
Changes
1
Hide whitespace changes
Inline
Side-by-side
DTObs.py
View file @
2974a6f8
...
...
@@ -164,11 +164,11 @@ class DTObservationProgram(Ui_mainWindow):
data: is the stdout result which need to be stored line by line
measFile: result file stroing the stdout results including meta data
"""
print
(
"Output to file:"
,
measFile
)
integrationTime
=
self
.
spinBoxIntTime
.
value
()
measProgramme
=
self
.
comboBoxProgramma
.
currentText
()
outputDir
=
self
.
lineEditOutputDir
.
text
()
measFile
=
open
(
outputDir
+
'DT-'
+
'{:03d}'
.
format
(
measnum
)
+
"-"
+
time
.
strftime
(
"%Y%m%d"
)
+
".dat"
,
'w'
)
measFile
=
open
(
outputDir
+
'/DT-'
+
'{:03d}'
.
format
(
measnum
)
+
"-"
+
time
.
strftime
(
"%Y%m%d"
)
+
".dat"
,
'w'
)
print
(
"Output to file:"
,
measFile
)
""" Write meta data into measFile"""
measFile
.
write
(
"#Observer: CAMRAS
\n
"
)
...
...
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