def start(self): analysis_cls = AnalysisFactory.get_analysis_cls(self._analysis_type) dialog = ImportStudyDialog(self.parent(), ApplicationStudy.default_output_directory, self._analysis_type) dialog.accepted.connect(self._on_import_study_dialog_accepted) dialog.show() self._import_study_dialog = dialog
def get_subjects(self): organized_directory = self.get_organized_directory() analysis_cls = AnalysisFactory.get_analysis_cls(self._analysis_type) temp_study = Study('IntraAnalysis', output_directory=organized_directory) QtGui.QApplication.setOverrideCursor(QtCore.Qt.WaitCursor) subjects = temp_study.get_subjects_from_pattern() QtGui.QApplication.restoreOverrideCursor() return subjects
def _create_analysis(self): return AnalysisFactory.create_analysis( self.analysis_type, self)
def analysis_cls(self): return AnalysisFactory.get_analysis_cls(self.analysis_type)