예제 #1
0
 def format(self, min_mag = -2.0):
     # result = '\nFrom: ' + utils.formatLocalDateTime(self._from) + ' To: ' + utils.formatLocalDateTime(self._to) + '\n'
     result = ''
     last_date = ''
     for flare in self._flares:
         if float(flare.mag) <= min_mag:
             date = utils.formatLocalDateDDMM(flare.tm)
             result += date + ' ' + flare.format()
     if len(result) == 0:
         result = 'No visible flare.'
     else:
         result = '\n' + result
     return result
예제 #2
0
    def format(self):
        # result = '\nFrom: ' + utils.formatLocalDateTime(self._from) + ' To: ' + utils.formatLocalDateTime(self._to) + '\n'
        result = ""
        for satpass in self._passInfos:
            date = utils.formatLocalDateDDMM(satpass.getDate())
            result += date + " " + satpass.format()

        if len(result) == 0:
            result = "No visible satellite pass."
        else:
            result = "\n" + result

        return result