示例#1
0
 def test_in_radians_per_century_ra_time(self):
     ra = RightAscension('12:00:00')
     proper_motion = ProperMotion(ra, time='century')
     assert_equal(proper_motion.in_radians_per_century(), pi)
示例#2
0
 def test_in_radians_per_century_ra_deg_arc(self):
     ra = RightAscension(degrees=90)
     proper_motion = ProperMotion(ra, time='century')
     assert_equal(proper_motion.in_radians_per_century(), pi / 2)
示例#3
0
 def test_in_radians_per_century_from_year_ra_deg_arc(self):
     ra = RightAscension(degrees=90)
     proper_motion = ProperMotion(ra)
     assert_equal(proper_motion.in_radians_per_century(), pi / 2 * 100)
示例#4
0
 def test_in_radians_per_century_dec_radians(self):
     dec = Declination(radians=pi / 4)
     proper_motion = ProperMotion(dec, time='century')
     assert_equal(proper_motion.in_radians_per_century(), pi / 4)
示例#5
0
 def test_in_radians_per_century_from_year_dec_radians(self):
     dec = Declination(radians=pi / 4)
     proper_motion = ProperMotion(dec)
     assert_equal(proper_motion.in_radians_per_century(), pi / 4 * 100)
示例#6
0
 def test_in_radians_per_century_from_year_dec_time(self):
     dec = Declination(degrees=6, units='time')
     proper_motion = ProperMotion(dec)
     assert_equal(proper_motion.in_radians_per_century(), pi / 2 * 100)
示例#7
0
 def test_in_radians_per_century_dec_time(self):
     dec = Declination(degrees=6, units='time')
     proper_motion = ProperMotion(dec, time='century')
     assert_equal(proper_motion.in_radians_per_century(), pi / 2)
示例#8
0
 def test_in_radians_per_century_from_year_dec_deg_arc(self):
     dec = Declination(degrees=90)
     proper_motion = ProperMotion(dec)
     assert_equal(proper_motion.in_radians_per_century(), pi / 2 * 100)
示例#9
0
 def test_in_radians_per_century_dec_deg_arc(self):
     dec = Declination(degrees=90)
     proper_motion = ProperMotion(dec, time='century')
     assert_equal(proper_motion.in_radians_per_century(), pi / 2)
示例#10
0
 def test_in_radians_per_century_from_year_ra_time(self):
     ra = RightAscension('12:00:00')
     proper_motion = ProperMotion(ra)
     assert_equal(proper_motion.in_radians_per_century(), pi * 100)