From a42c26dc883ed806e09bc42b25d49f4336e524cd Mon Sep 17 00:00:00 2001 From: thouska Date: Thu, 24 Sep 2020 13:45:40 +0200 Subject: [PATCH] Fix in updated gelman rubin test --- spotpy/parameter.py | 4 ++-- tests/test_analyser.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spotpy/parameter.py b/spotpy/parameter.py index c03e9608..c786172c 100644 --- a/spotpy/parameter.py +++ b/spotpy/parameter.py @@ -431,7 +431,7 @@ def __init__(self, *args, **kwargs): default is median of rndfunc(*rndargs, size=1000) :optguess: (optional) number for start point of parameter default is quantile(0.5) - quantile(0.4) of - rndfunc(*rndargs, size=1000) + rndfunc(*rndargs, size=1000) """ super(Exponential, self).__init__(rnd.exponential, 'Exponential', *args, **kwargs) @@ -474,7 +474,7 @@ def __init__(self, *args, **kwargs): default is median of rndfunc(*rndargs, size=1000) :optguess: (optional) number for start point of parameter default is quantile(0.5) - quantile(0.4) of - rndfunc(*rndargs, size=1000) + rndfunc(*rndargs, size=1000) """ super(Wald, self).__init__(rnd.wald, 'Wald', *args, **kwargs) diff --git a/tests/test_analyser.py b/tests/test_analyser.py index ba35f13f..7c8444d8 100644 --- a/tests/test_analyser.py +++ b/tests/test_analyser.py @@ -362,7 +362,7 @@ def test_plot_autocorellation(self): def test_plot_gelman_rubin(self): if sys.version_info >= (3, 6): - spotpy.analyser.plot_gelman_rubin(self.r_hat, fig_name =self.fig_name) + spotpy.analyser.plot_gelman_rubin(self.hymod_results, self.r_hat, fig_name =self.fig_name) self.assertGreaterEqual(abs(os.path.getsize(self.fig_name)), 100)