Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 3
0
 def _create_analysis(self):
     return AnalysisFactory.create_analysis(
         self.analysis_type, self)
Ejemplo n.º 4
0
 def analysis_cls(self):
     return AnalysisFactory.get_analysis_cls(self.analysis_type)