def isCorrectInput(self): """ Check correct values for RA and DEC """ ra = self.RA.GetValue() dec = self.DEC.GetValue() return astronomy.checkCoordinates(ra, dec )
def _validCoordinates(self): ra, dec = self.inFieldRA.GetValue(), self.inFieldDEC.GetValue() return astronomy.checkCoordinates(ra, dec)
def isCorrectInput(self): """ Check correct values for RA and DEC """ name = self.name.GetValue() ra = self.RA.GetValue() dec = self.DEC.GetValue() return astronomy.checkCoordinates(ra, dec) & (not self.starManager.starExists(name))