52c8d9e1c6b8ebf1639fd102792ab0e4d14a58d3,hyperspy/tests/utils/test_roi.py,TestROIs,test_span_spectrum_nav_boundary_roi,#TestROIs#Any#,87

Before Change


        r2 = SpanROI(0, 12)
        // Test adding roi to plot
        s.plot()
        r2.add_widget(s)
        np.testing.assert_equal(r2(s).data, s.data)

    def test_span_spectrum_sig(self):
        s = self.s_s

After Change


        r2 = SpanROI(0, 12)
        // Test adding roi to plot
        s.plot()
        w2 = r2.add_widget(s)
        np.testing.assert_equal(r2(s).data, s.data)

        w2.set_bounds(x=-10)  // below min x
        assert w2._pos[0] == 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: hyperspy/hyperspy
Commit Name: 52c8d9e1c6b8ebf1639fd102792ab0e4d14a58d3
Time: 2017-07-25
Author: eric.prestat@gmail.com
File Name: hyperspy/tests/utils/test_roi.py
Class Name: TestROIs
Method Name: test_span_spectrum_nav_boundary_roi


Project Name: hyperspy/hyperspy
Commit Name: ca6c51f3cdc2c17f75c4003427ba9e6e6732fe2a
Time: 2017-07-25
Author: eric.prestat@gmail.com
File Name: hyperspy/tests/utils/test_roi.py
Class Name: TestROIs
Method Name: test_rect_image_boundary_roi


Project Name: hyperspy/hyperspy
Commit Name: e45f5b3aad7259214f4295bae39205ab010c3b52
Time: 2017-07-24
Author: eric.prestat@gmail.com
File Name: hyperspy/tests/utils/test_roi.py
Class Name: TestROIs
Method Name: test_rect_image_boundary_roi