Exemple #1
0
 def test_02_Loc(self):
     # locationXml.read_location_xml(self.m_pyhouse_obj)
     l_ret = AstralUtil.calc_solar_times(self.m_pyhouse_obj, T_DATE_1)
     print(' Calc:{}\n  Web:{}'.format(l_ret.SunRise, T_SUNRISE_1))
     print(l_ret.SunRise)
     self.assertEqual(l_ret.SunRise.hour, T_SUNRISE_1.hour)
     self.assertApproximates(l_ret.SunRise.minute, T_SUNRISE_1.minute, 1)
 def test_02_Loc(self):
     # locationXml.read_location_xml(self.m_pyhouse_obj)
     l_ret = AstralUtil.calc_solar_times(self.m_pyhouse_obj, T_DATE_1)
     print(' Calc:{}\n  Web:{}'.format(l_ret.SunRise, T_SUNRISE_1))
     print(l_ret.SunRise)
     self.assertEqual(l_ret.SunRise.hour, T_SUNRISE_1.hour)
     self.assertApproximates(l_ret.SunRise.minute, T_SUNRISE_1.minute, 1)
Exemple #3
0
 def test_05_Loc(self):
     l_ret = AstralUtil.calc_solar_times(self.m_pyhouse_obj, T_DATE_4)
     print(' Calc:{}\n  Web:{}'.format(l_ret.SunRise, T_SUNRISE_4))
     print(l_ret.SunRise)
     self.assertEqual(l_ret.SunRise.hour, T_SUNRISE_4.hour)
     self.assertApproximates(l_ret.SunRise.minute, T_SUNRISE_4.minute, 1)
 def test_05_Loc(self):
     l_ret = AstralUtil.calc_solar_times(self.m_pyhouse_obj, T_DATE_4)
     print(' Calc:{}\n  Web:{}'.format(l_ret.SunRise, T_SUNRISE_4))
     print(l_ret.SunRise)
     self.assertEqual(l_ret.SunRise.hour, T_SUNRISE_4.hour)
     self.assertApproximates(l_ret.SunRise.minute, T_SUNRISE_4.minute, 1)