2599f644bd4c5e637a5d3777f523d3e53ef662a9,hyperspy/tests/model/test_model.py,TestModelFitBinned,test_fit_bounded_leastsq,#TestModelFitBinned#,680

Before Change


        np.testing.assert_almost_equal(self.m[0].sigma.value, 2.08398236966)

    def test_fit_bounded_leastsq(self):
        if LooseVersion(scipy.__version__) < LooseVersion("0.17"):
            raise SkipTest("least bounds only available in scipy >= 0.17")
        self.m[0].centre.bmin = 0.5
        // self.m[0].bounded = True
        self.m.fit(fitter="leastsq", bounded=True)
        np.testing.assert_almost_equal(self.m[0].A.value, 9991.65422046, 3)

After Change


        np.testing.assert_almost_equal(self.m[0].sigma.value, 2.08398236966)

    def test_fit_bounded_leastsq(self):
        pytest.importorskip("scipy", minversion="0.17")
        self.m[0].centre.bmin = 0.5
        // self.m[0].bounded = True
        self.m.fit(fitter="leastsq", bounded=True)
        np.testing.assert_almost_equal(self.m[0].A.value, 9991.65422046, 3)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: hyperspy/hyperspy
Commit Name: 2599f644bd4c5e637a5d3777f523d3e53ef662a9
Time: 2017-01-28
Author: frandelapena@gmail.com
File Name: hyperspy/tests/model/test_model.py
Class Name: TestModelFitBinned
Method Name: test_fit_bounded_leastsq


Project Name: hyperspy/hyperspy
Commit Name: 2599f644bd4c5e637a5d3777f523d3e53ef662a9
Time: 2017-01-28
Author: frandelapena@gmail.com
File Name: hyperspy/tests/model/test_model.py
Class Name: TestModel1D
Method Name: test_notebook_interactions


Project Name: ilastik/ilastik
Commit Name: 1b60498d40bd445bcd0f86086e767540de19011b
Time: 2020-04-02
Author: mnovikov.work@gmail.com
File Name: tests/test_lazyflow/test_operators/testOpRelabelConsecutive.py
Class Name:
Method Name: