コード例 #1
0
ファイル: test_z.py プロジェクト: waltervrossem/PyTransit
 def test_ip(self):
     for (i, t0), w in product(enumerate(self.t0s), self.ws):
         z = of.z_eccentric_ip(self.t,
                               t0,
                               self.p,
                               self.a,
                               self.i,
                               0,
                               w,
                               nth=1,
                               update=True)
         npt.assert_array_almost_equal(z, self.ref_zs[i], decimal=3)
コード例 #2
0
 def test_ip(self):
     for i, (t0, e, w) in enumerate(product(self.t0s, self.es, self.ws)):
         z = of.z_eccentric_ip(self.t,
                               t0,
                               self.p,
                               self.a,
                               self.i,
                               e,
                               w,
                               nth=1,
                               update=True)
         npt.assert_array_almost_equal(z, self.ref_zs[i], decimal=3)
コード例 #3
0
ファイル: test_z_eccentric.py プロジェクト: hpparvi/PyTransit
 def test_ip(self):
     for i, (t0, e, w) in enumerate(product(self.t0s, self.es, self.ws)):
         z = of.z_eccentric_ip(self.t, t0, self.p, self.a, self.i, e, w, nth=1, update=True)
         npt.assert_array_almost_equal(z, self.ref_zs[i], decimal=3)
コード例 #4
0
ファイル: test_z.py プロジェクト: hpparvi/PyTransit
 def test_ip(self):
     for (i,t0), w in product(enumerate(self.t0s), self.ws):
         z = of.z_eccentric_ip(self.t, t0, self.p, self.a, self.i, 0, w, nth=1, update=True)
         npt.assert_array_almost_equal(z, self.ref_zs[i], decimal=3)