Exemple #1
0
    def handleFileSelectionResponce(self, fileList, recognizer):
        """

        @param fileList:
        @return
        """

        if len(fileList) == 0:
            self.lblSelectedDir.configure(
                text="Dataset directory not yet specified")
            return
        if len(fileList) > 1:
            self.lblSelectedDir.configure(
                text="Multiple Directories selected - data is of type %s" %
                (str(recognizer)))
        else:
            self.lblSelectedDir.configure(
                text="Single Dataset Selected - data is of type %s" %
                (str(recognizer)))

        self.dataset = DatasetFactory.buildMultiset()

        with concurrent.futures.ThreadPoolExecutor() as tpe:
            dsFutures = []
            for i in fileList.keys():
                dsFutures.append(
                    tpe.submit(
                        lambda x: DatasetFactory.buildDataset(
                            fileList[x], ast.literal_eval(x), hint=recognizer),
                        i))
            for ff in dsFutures:
                self.dataset.addDataset(ff.result())

        self.plotter = Plotter.Plotter(self.dataset)
Exemple #2
0
    def handleFileSelectionResponce(self, fileList, recognizer):
        """

        @param fileList:
        @return
        """

        if len(fileList) == 0:
            self.lblSelectedDir.configure(text="Dataset directory not yet specified")
            return
        if len(fileList) > 1:
            self.lblSelectedDir.configure(text="Multiple Directories selected - data is of type %s" % (str(recognizer)))
        else:
            self.lblSelectedDir.configure(text="Single Dataset Selected - data is of type %s" % (str(recognizer)))

        self.dataset = DatasetFactory.buildMultiset()

        with concurrent.futures.ThreadPoolExecutor() as tpe:
            dsFutures = []
            for i in fileList.keys():
                dsFutures.append(tpe.submit(lambda x: DatasetFactory.buildDataset(fileList[x],
                                                                                  ast.literal_eval(x),
                                                                                  hint=recognizer), i))
            for ff in dsFutures:
                self.dataset.addDataset(ff.result())

        self.plotter = Plotter.Plotter(self.dataset)
Exemple #3
0
    def _setDirectory(self):
        """

        @return
        """
        selected = filedialog.askdirectory()
        self.selectedDir.configure(text=selected)
        self.dataset = DatasetFactory.buildDataset(selected + '/')
        self.plotter = Plotter.Plotter(self.dataset)
        self._plotDataset()
Exemple #4
0
    def _setDirectory(self):
        """

        @return
        """
        selected = filedialog.askdirectory()
        self.selectedDir.configure(text=selected)
        self.dataset = DatasetFactory.buildDataset(selected + '/')
        self.plotter = Plotter.Plotter(self.dataset)
        self._plotDataset()