Commit 12370ee9 authored by marc's avatar marc
Browse files

minor

parent 19934017
...@@ -40,7 +40,6 @@ class CreatePointings(Ui_FormCreatePoinings): ...@@ -40,7 +40,6 @@ class CreatePointings(Ui_FormCreatePoinings):
''' '''
self.comboBox.currentIndexChanged.connect(self.updateRADEC) self.comboBox.currentIndexChanged.connect(self.updateRADEC)
self.buttonBoxCreatePointings.accepted.connect(self.createPointings) self.buttonBoxCreatePointings.accepted.connect(self.createPointings)
self.buttonBoxCreatePointings.rejected.connect(self.writePointings)
def updateRADEC(self): def updateRADEC(self):
self.target = SkyCoord.from_name(self.comboBox.currentText()) self.target = SkyCoord.from_name(self.comboBox.currentText())
...@@ -73,10 +72,7 @@ class CreatePointings(Ui_FormCreatePoinings): ...@@ -73,10 +72,7 @@ class CreatePointings(Ui_FormCreatePoinings):
logger.debug('raOffset: {0} raSign {1}'.format(raOffset,raSign)) logger.debug('raOffset: {0} raSign {1}'.format(raOffset,raSign))
self.measList.append(SkyCoord(ra=raOffset*u.degree,dec=decOffset*u.degree,frame='icrs')) self.measList.append(SkyCoord(ra=raOffset*u.degree,dec=decOffset*u.degree,frame='icrs'))
pointings+=1 pointings+=1
logger.debug('Start writePointings')
def writePointings(self):
logger.debug('Start writePointings')
index=0 index=0
with open('../dtObsGUI/templates/newPointings.pnt','w') as f: with open('../dtObsGUI/templates/newPointings.pnt','w') as f:
for pointing in self.measList: for pointing in self.measList:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment