예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def _create_analysis(self):
     return AnalysisFactory.create_analysis(
         self.analysis_type, self)
예제 #4
0
 def analysis_cls(self):
     return AnalysisFactory.get_analysis_cls(self.analysis_type)