def __init__(self, link): super(AlmanacView, self).__init__() self.link = link self.alm = Almanac() self.python_console_cmds = {'alm': self.alm}
def __init__(self, link): super(AlmanacView, self).__init__() self.link = link self.alm = Almanac() #self.timer = BackgroundTimer(self.update_alamanc_view) self.python_console_cmds = {'alm': self.alm}
modTmp = [(t % 9) + 1 for t in tmp] print(modTmp) print(origList) print(nakshatrasEnum) def deg_min_sec(dec, aya=None): if aya is not None: dec = dec - aya deg = int(floor(dec)) minutes = dec % 1.0 * 60 secs = minutes % 1.0 * 60 return f'{deg}-{int(floor(minutes))}-{secs}' a = Almanac() a.compute(datetime.now(timezone.utc)) print(a.tithi) for t in tithi_list: print(f'requesting for {t.__str__()}') a.get_next_thiti(t) a.get_dates_on_day(VARAM.TUE, DateRange(date(2020, 4, 1), date(2020, 4, 30))) # from flatlib.datetime import Datetime # from flatlib.geopos import GeoPos # import flatlib.const as const # from flatlib.chart import Chart # now = Datetime('2009/07/15', '05:30') # pos = GeoPos(13.0827, 80.2707) # chennai now = swe.julday(2019, 8, 26, .5, swe.GREG_CAL)