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
createpointings
Commits
613000e7
Commit
613000e7
authored
Nov 04, 2017
by
marc
Browse files
Initial commit
parent
fdbcc43b
Changes
1
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
613000e7
...
...
@@ -76,15 +76,14 @@ class CreatePointings(Ui_FormCreatePoinings):
def
writePointings
(
self
):
logger
.
debug
(
'Start writePointings'
)
index
=
0
with
open
(
'pointings.dat'
,
'w'
)
as
f
:
with
open
(
'
../templates/
pointings.dat'
,
'w'
)
as
f
:
for
pointing
in
self
.
measList
:
f
.
write
(
'{}
\t
{}
\t
{}
\n
'
.
format
(
index
,
self
.
measList
[
index
].
ra
.
deg
,
self
.
measList
[
index
]
.
dec
.
deg
)
)
logger
.
debug
(
'{}
\t
{}
\t
{}
\n
'
.
format
(
index
,
self
.
measList
[
index
].
ra
.
deg
,
self
.
measList
[
index
].
dec
.
deg
)
)
f
.
write
(
'{}
\t
{}
\t
{}
\n
'
.
format
(
index
,
pointing
.
ra
.
deg
,
pointing
.
dec
.
deg
)
)
logger
.
debug
(
'{}
\t
{}
\t
{}
\n
'
.
format
(
index
,
pointing
.
ra
.
deg
,
pointing
.
dec
.
deg
))
index
+=
1
f
.
flush
()
logger
.
debug
(
'End createPointings'
)
f
.
close
()
sys
.
exit
(
app
.
exec_
())
...
...
Write
Preview
Markdown
is supported
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