def validatePage(self):
        filesSpecificationModel = DatasourceFilesSpecificationModel()
        for (_path, _filename, _signalIndex, _annotationIndex, _timeIndex,
             _separator) in \
            self.__getFilesSpec__(indexes=True, separators=True):
                if _signalIndex == None:
                    ErrorWindow(message=("No signal column for the file %s !"
                                         % (_filename)))
                    return False
                if _separator == None:
                    ErrorWindow(message=("No separator for file %s !"
                                         % (_filename)))
                    return False
                filesSpecificationModel.appendRow(_path, _filename,
                    _signalIndex, _annotationIndex, _timeIndex, _separator,
                    self.__timeUnitsGroup__.getUnit())

        PluginsManager.invokePlugin(PluginsNames.TACHOGRAM_PLOT_PLUGIN_NAME,
                    inspect.stack(),
                    model=filesSpecificationModel.getAsFilesSpecifications(),
                    activity_description=self.__activity__.description(),
                    activity_params=['model'])
        return True
Esempio n. 2
0
 def __call__(self):
     #this explicit import is required here to prevent from a cyclic import
     from hra_gui.qt.utils.plugins import PluginsManager
     PluginsManager.invokePlugin(self.__plugin_id__, inspect.stack(),
                     **get_subdict(self.params, not_keys=['description']))
Esempio n. 3
0
 def __call__(self):
     #this explicit import is required here to prevent from a cyclic import
     from hra_gui.qt.utils.plugins import PluginsManager
     PluginsManager.invokePlugin(
         self.__plugin_id__, inspect.stack(),
         **get_subdict(self.params, not_keys=['description']))