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
12370ee9
Commit
12370ee9
authored
Nov 04, 2017
by
marc
Browse files
minor
parent
19934017
Changes
1
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
12370ee9
...
...
@@ -40,7 +40,6 @@ class CreatePointings(Ui_FormCreatePoinings):
'''
self
.
comboBox
.
currentIndexChanged
.
connect
(
self
.
updateRADEC
)
self
.
buttonBoxCreatePointings
.
accepted
.
connect
(
self
.
createPointings
)
self
.
buttonBoxCreatePointings
.
rejected
.
connect
(
self
.
writePointings
)
def
updateRADEC
(
self
):
self
.
target
=
SkyCoord
.
from_name
(
self
.
comboBox
.
currentText
())
...
...
@@ -73,10 +72,7 @@ class CreatePointings(Ui_FormCreatePoinings):
logger
.
debug
(
'raOffset: {0} raSign {1}'
.
format
(
raOffset
,
raSign
))
self
.
measList
.
append
(
SkyCoord
(
ra
=
raOffset
*
u
.
degree
,
dec
=
decOffset
*
u
.
degree
,
frame
=
'icrs'
))
pointings
+=
1
def
writePointings
(
self
):
logger
.
debug
(
'Start writePointings'
)
logger
.
debug
(
'Start writePointings'
)
index
=
0
with
open
(
'../dtObsGUI/templates/newPointings.pnt'
,
'w'
)
as
f
:
for
pointing
in
self
.
measList
:
...
...
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