コード例 #1
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_ra_time(self):
     ra = RightAscension('12:00:00')
     proper_motion = ProperMotion(ra, time='century')
     assert_equal(proper_motion.in_degrees_per_century(), 180)
コード例 #2
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_ra_deg_arc(self):
     ra = RightAscension(degrees=90)
     proper_motion = ProperMotion(ra, time='century')
     assert_equal(proper_motion.in_degrees_per_century(), 90)
コード例 #3
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_from_year_ra_deg_arc(self):
     ra = RightAscension(degrees=90)
     proper_motion = ProperMotion(ra)
     assert_equal(proper_motion.in_degrees_per_century(), 90 * 100)
コード例 #4
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_dec_radians(self):
     dec = Declination(radians=pi / 4)
     proper_motion = ProperMotion(dec, time='century')
     assert_equal(proper_motion.in_degrees_per_century(), 45)
コード例 #5
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_from_year_dec_radians(self):
     dec = Declination(radians=pi / 4)
     proper_motion = ProperMotion(dec)
     assert_equal(proper_motion.in_degrees_per_century(), 45 * 100)
コード例 #6
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_dec_time(self):
     dec = Declination(degrees=6, units='time')
     proper_motion = ProperMotion(dec, time='century')
     assert_equal(proper_motion.in_degrees_per_century(), 90)
コード例 #7
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_from_year_dec_time(self):
     dec = Declination(degrees=6, units='time')
     proper_motion = ProperMotion(dec)
     assert_equal(proper_motion.in_degrees_per_century(), 90 * 100)
コード例 #8
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_from_year_dec_deg_arc(self):
     dec = Declination(degrees=90)
     proper_motion = ProperMotion(dec)
     assert_equal(proper_motion.in_degrees_per_century(), 90 * 100)
コード例 #9
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_dec_deg_arc(self):
     dec = Declination(degrees=90)
     proper_motion = ProperMotion(dec, time='century')
     assert_equal(proper_motion.in_degrees_per_century(), 90)
コード例 #10
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_from_year_ra_radians(self):
     ra = RightAscension(radians=pi / 2)
     proper_motion = ProperMotion(ra)
     assert_equal(proper_motion.in_degrees_per_century(), 90 * 100)
コード例 #11
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_ra_radians(self):
     ra = RightAscension(radians=pi / 2)
     proper_motion = ProperMotion(ra, time='century')
     assert_equal(proper_motion.in_degrees_per_century(), 90)
コード例 #12
0
ファイル: rates_test.py プロジェクト: ire-and-curses/rise_set
 def test_in_degrees_per_century_from_year_ra_time(self):
     ra = RightAscension('12:00:00')
     proper_motion = ProperMotion(ra)
     assert_equal(proper_motion.in_degrees_per_century(), 180 * 100)