def setUp(self):
        self.number_of_resamples = 10000
        filename = 'flicker.xlsx'

        self.bootstrapper = None
        fh = FileHandling()
        self.data_dict = fh.import_spreadsheet(filename)
        self.bootstrapper = Bootstrapper(self.data_dict,
                                         self.number_of_resamples)
        self.bootstrapped_dict = self.bootstrapper.bootstrapped_data
    def setUp(self):
        self.number_of_resamples = 10000

        # import dataset from file
        filename = 'flicker.xlsx'
        self.__fh = FileHandling()
        self.original_data_dict = self.__fh.import_spreadsheet(filename)

        # resample dataset
        self.__bootstrapper = Bootstrapper(self.original_data_dict,
                                           self.number_of_resamples)

        #init bootstrap analysis tools
        self.analysis = BootstrapAnalysis(self.__bootstrapper)
    def __init__(self, filename, number_of_resamples=10000):

        """
        Initializing the Bootstrapit class executes the resampling of the imported dataset.
        :param filename: The filename including filepath to the import data file.
        :param number_of_resamples: The number of resamples to perform.
        """
        self.number_of_resamples = number_of_resamples

        # import dataset from file
        self.__fh = FileHandling()
        self.original_data_dict = self.__fh.import_spreadsheet(filename)

        # resample dataset
        self.__bootstrapper = Bootstrapper(self.original_data_dict, number_of_resamples)

        #init bootstrap analysis tools
        self.__analysis = BootstrapAnalysis(self.__bootstrapper)

        #init plotter
        self.__plotter = Plotting(self.__fh.export_order)
    def __init__(self):
        self.MainWindow = QtWidgets.QMainWindow()
        self.ui = mw.Ui_MainWindow()
        self.ui.setupUi(self.MainWindow)

        self.MainWindow.closeEvent = self.closeEvent #wer weis ob das ok ist^^

        self.ui.treeWidget_Produktion.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.ui.treeWidget_Produktion.customContextMenuRequested.connect(self.openMenu_treeItem)

        # self.ui.pushButton_Arbeitsschritt_hinzufgen.clicked.connect(self.pushButton_Arbeitsschritt_hinzufgen)
        # self.ui.pushButton_Schablone_hinzufgen.clicked.connect(self.pushButton_Schablone_hinzufgen)
        # self.ui.pushButton_Prozess_hinzufgen.clicked.connect(self.pushButton_Prozess_hinzufgen)
        self.ui.pushButton_Start.clicked.connect(self.pushButton_Start)
        self.ui.pushButton_Stop.clicked.connect(self.pushButton_Stop)

        self.ui.treeWidget_Produktion.itemDoubleClicked.connect(self.ondoubleclick)
        self.ui.treeWidget_Produktion.itemChanged.connect(self.treeWidget_Produktion_itemChanged)
        self.ui.treeWidget_Produktion.itemClicked.connect(self.treeWidget_Produktion_clicked)

        self.ui.actionopen.triggered.connect(self.actionOpen_clicked)
        self.ui.actionnew.triggered.connect(self.actionnew_clicked)
        self.ui.actionsave.triggered.connect(self.actionsave_clicked)
        self.ui.actionSettings.triggered.connect(self.actionSettings_clicked)
        self.ui.actionsave_as.triggered.connect(self.actionsave_as_clicked)

        self.treeWidget_Produktion_head: QtWidgets.QHeaderView = self.ui.treeWidget_Produktion.header()
        self.treeWidget_Produktion_head.setSectionsClickable(True)
        self.treeWidget_Produktion_head.sectionDoubleClicked.connect(self.treeWidget_Produktion_head_DoubleClicked)
        self.treeWidget_Produktion_head.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.treeWidget_Produktion_head.customContextMenuRequested.connect(self.openMenu_treeHead)


        # self.ui.treeWidget_Produktion.setAcceptDrops(True)
        # self.ui.treeWidget_Produktion.setDragEnabled(True)
        # self.ui.treeWidget_Produktion.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)

        self.guiArbeitsschritt = gui_Arbeitsschritt.gui_Arbeitsschrit(self.MainWindow)
        self.guiSchablone = gui_Schablone.gui_Schablone(self.MainWindow)
        self.guiProzess = gui_Prozess.gui_Prozess(self.MainWindow)
        self.guiSetups = gui_Setups.gui_Setups(self.MainWindow)

        # item = my_QTreeWidgetItem.my_QTreeWidgetItem(self.ui.treeWidget_Produktion)

        self.filehandeling = FileHandling(".set")

        self.setups = model_Setups.Setups()  # erstellen des Models
        self.running = False

        self.parents = {}  # um die elemente im treeWidget löschen zu können weird eine Referenz auf das Elter benötigt

        self.update_TreeWidget()

        FileHandling.system_path = os.path.dirname(sys.argv[0]) # os.path.dirname(os.path.realpath(__file__))
        self.settings = model_Settings.Settings()
        FileHandling.last_path = self.settings.setings["ablage"]["Pfad Programme"]

        self.plotter: model_Plotter.Plotter

        #self.status_text = ""
        self.update_gui()