Beispiel #1
0
        def runBefore(self):
            sys.argv[1:] = [test_filename]
            gsac, opts = getDataOpts()
            axs = getAxes(opts)
            ppmm = PickPhaseMenuMore(gsac, opts, axs)

            fake_event = matplotlib.backend_bases.MouseEvent('button_press_event', ppmm.axstk.figure.canvas, 56, 224)
            ppmm.filtering(fake_event)
            return ppmm
Beispiel #2
0
        def runBefore(self):
            sys.argv[1:] = [test_filename]
            gsac, opts = getDataOpts()
            axs = getAxes(opts)
            ppmm = PickPhaseMenuMore(gsac, opts, axs)

            fake_event = matplotlib.backend_bases.MouseEvent(
                'button_press_event', ppmm.axstk.figure.canvas, 56, 224)
            ppmm.filtering(fake_event)
            return ppmm
Beispiel #3
0
        def test_filter_spreadButter(self):
            sys.argv[1:] = [test_filename]
            gsac, opts = getDataOpts()
            axs = getAxes(opts)
            ppmm = PickPhaseMenuMore(gsac, opts, axs)

            # click the filter button
            event_clickFilterBtn = matplotlib.backend_bases.MouseEvent('button_press_event', ppmm.axstk.figure.canvas, 71,223)
            ppmm.filtering(event_clickFilterBtn)
   
            # click apply filter button
            event_clickApplyFilterBtn = matplotlib.backend_bases.MouseEvent('button_press_event', ppmm.figfilter.canvas, 646,829)
            ppmm.applyFilter(event_clickApplyFilterBtn)
Beispiel #4
0
        def test_filter_spreadButter(self):
            sys.argv[1:] = [test_filename]
            gsac, opts = getDataOpts()
            axs = getAxes(opts)
            ppmm = PickPhaseMenuMore(gsac, opts, axs)

            # click the filter button
            event_clickFilterBtn = matplotlib.backend_bases.MouseEvent(
                'button_press_event', ppmm.axstk.figure.canvas, 71, 223)
            ppmm.filtering(event_clickFilterBtn)

            # click apply filter button
            event_clickApplyFilterBtn = matplotlib.backend_bases.MouseEvent(
                'button_press_event', ppmm.figfilter.canvas, 646, 829)
            ppmm.applyFilter(event_clickApplyFilterBtn)