-
Notifications
You must be signed in to change notification settings - Fork 122
/
FilterEvents.py
24 lines (21 loc) · 931 Bytes
/
FilterEvents.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
# pylint: disable=invalid-name
import sys
from mantidqt.gui_helper import set_matplotlib_backend, get_qapplication
set_matplotlib_backend() # must be called before anything tries to use matplotlib
from FilterEvents import eventFilterGUI # noqa
app, within_mantid = get_qapplication()
if 'workbench' in sys.modules:
from workbench.config import get_window_config
parent, flags = get_window_config()
else:
parent, flags = None, None
reducer = eventFilterGUI.MainWindow(parent, flags) #the main ui class in this file is called MainWindow
reducer.show()
if not within_mantid:
sys.exit(app.exec_())