Esempio n. 1
0
 def create_updated_study(self, progress_callback=None):
     old_vol_format = self.study.volumes_format
     old_mesh_format = self.study.meshes_format
     # create a new study to avoid modifying the existing one (we may be
     # called from a thread here)
     serialized_study = self.study.serialize()
     study = Study.unserialize(serialized_study,
                               self.study.output_directory)
     self._study_properties_editor.update_study(study)
     self._subjects_editor.update_study(
         study, self.study_update_policy)
     study.convert_from_formats(old_vol_format, old_mesh_format,
                                progress_callback)
     self.study = study  # WARNING whe change the study in a thread.
     return self.study