6d68740413c305d0697467dafb15a4ecb5eaaaf0,hyperspy/tests/signal/test_1D_tools.py,TestFindPeaks1D,test_maxpeaksn,#TestFindPeaks1D#,173

Before Change



    def test_maxpeaksn(self):
        for n in range(1, 10):
            peaks = self.signal.find_peaks1D_ohaver(maxpeakn=n)
            nt.assert_equal(len(peaks[1]), min((8, n)))


@lazifyTestClass

After Change



    def test_maxpeaksn(self):
        for n in range(1, 10):
            peaks = self.signal.find_peaks1D_ohaver(maxpeakn=n)[1]
            if self.signal._lazy:
                peaks = peaks.compute()
            nt.assert_equal(len(peaks), min((8, n)))


@lazifyTestClass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 8

Instances


Project Name: hyperspy/hyperspy
Commit Name: 6d68740413c305d0697467dafb15a4ecb5eaaaf0
Time: 2017-01-13
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_1D_tools.py
Class Name: TestFindPeaks1D
Method Name: test_maxpeaksn


Project Name: hyperspy/hyperspy
Commit Name: 6d68740413c305d0697467dafb15a4ecb5eaaaf0
Time: 2017-01-13
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_1D_tools.py
Class Name: TestFindPeaks1D
Method Name: test_two_spectra


Project Name: hyperspy/hyperspy
Commit Name: 6d68740413c305d0697467dafb15a4ecb5eaaaf0
Time: 2017-01-13
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_1D_tools.py
Class Name: TestFindPeaks1D
Method Name: test_width


Project Name: hyperspy/hyperspy
Commit Name: 6d68740413c305d0697467dafb15a4ecb5eaaaf0
Time: 2017-01-13
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_1D_tools.py
Class Name: TestFindPeaks1D
Method Name: test_n_peaks


Project Name: hyperspy/hyperspy
Commit Name: 6d68740413c305d0697467dafb15a4ecb5eaaaf0
Time: 2017-01-13
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_1D_tools.py
Class Name: TestFindPeaks1D
Method Name: test_single_spectrum


Project Name: hyperspy/hyperspy
Commit Name: 6d68740413c305d0697467dafb15a4ecb5eaaaf0
Time: 2017-01-13
Author: t.ostasevicius@gmail.com
File Name: hyperspy/tests/signal/test_1D_tools.py
Class Name: TestFindPeaks1D
Method Name: test_height