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