def action(self): with DVH_SQL() as cnx: dicom_files = cnx.get_dicom_file_paths(uid=self.uid) if self.delete_from_db: cnx.delete_rows("study_instance_uid = '%s'" % self.uid) move_imported_dicom_files(dicom_files, INBOX_DIR) ImportDicomFrame(inbox=INBOX_DIR)
def action(self): with DVH_SQL() as cnx: dicom_files = cnx.get_dicom_file_paths(uid=self.uid) if self.delete_from_db: cnx.delete_rows("study_instance_uid = '%s'" % self.uid) inbox = self.options.INBOX_DIR move_imported_dicom_files(dicom_files, inbox) ImportDicomFrame(self.roi_map, self.options, inbox=inbox, auto_parse=True)
def action_yes(self): dlg = wx.DirDialog(self.parent, "Choose directory", "", wx.DD_DEFAULT_STYLE | wx.DD_DIR_MUST_EXIST) if dlg.ShowModal() == wx.ID_OK: move_imported_dicom_files(self.dicom_file_query, dlg.GetPath()) dlg.Destroy()