Exemplo n.º 1
0
 def test_gringorten(self):
     pp, yy = viz.plot_pos(self.data, postype='gringorten')
     nptest.assert_array_almost_equal(pp, self.known_gringorten)
Exemplo n.º 2
0
 def test_bad_postype(self):
     with pytest.raises(KeyError):
         viz.plot_pos(self.data, postype='junk')
Exemplo n.º 3
0
 def test_blom(self):
     pp, yy = viz.plot_pos(self.data, postype='blom')
     nptest.assert_array_almost_equal(pp, self.known_blom)
Exemplo n.º 4
0
 def test_cunnane(self):
     pp, yy = viz.plot_pos(self.data, postype='cunnane')
     nptest.assert_array_almost_equal(pp, self.known_cunnane)
Exemplo n.º 5
0
 def test_median(self):
     pp, yy = viz.plot_pos(self.data, postype='median')
     nptest.assert_array_almost_equal(pp, self.known_median)
Exemplo n.º 6
0
 def test_apl(self):
     pp, yy = viz.plot_pos(self.data, postype='apl')
     nptest.assert_array_almost_equal(pp, self.known_apl)
Exemplo n.º 7
0
 def test_gringorten(self):
     pp, yy = viz.plot_pos(self.data, postype="gringorten")
     nptest.assert_array_almost_equal(pp, self.known_gringorten)
Exemplo n.º 8
0
 def test_bad_postype(self):
     with pytest.raises(KeyError):
         viz.plot_pos(self.data, postype="junk")
Exemplo n.º 9
0
 def test_blom(self):
     pp, yy = viz.plot_pos(self.data, postype="blom")
     nptest.assert_array_almost_equal(pp, self.known_blom)
Exemplo n.º 10
0
 def test_cunnane(self):
     pp, yy = viz.plot_pos(self.data, postype="cunnane")
     nptest.assert_array_almost_equal(pp, self.known_cunnane)
Exemplo n.º 11
0
 def test_apl(self):
     pp, yy = viz.plot_pos(self.data, postype="apl")
     nptest.assert_array_almost_equal(pp, self.known_apl)
Exemplo n.º 12
0
 def test_median(self):
     pp, yy = viz.plot_pos(self.data, postype="median")
     nptest.assert_array_almost_equal(pp, self.known_median)
Exemplo n.º 13
0
 def test_hazen(self):
     pp, yy = viz.plot_pos(self.data, postype='hazen')
     nptest.assert_array_almost_equal(pp, self.known_hazen)
Exemplo n.º 14
0
 def test_pwm(self):
     pp, yy = viz.plot_pos(self.data, postype='pwm')
     nptest.assert_array_almost_equal(pp, self.known_pwm)
Exemplo n.º 15
0
 def test_weibull(self):
     pp, yy = viz.plot_pos(self.data, postype='weibull')
     nptest.assert_array_almost_equal(pp, self.known_weibull)