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