Skip to content

Commit

Permalink
Split the error in export mmCIF between SUBMIT and SUBMISSION COMPLETE.
Browse files Browse the repository at this point in the history
  • Loading branch information
serbanvoinea committed Mar 27, 2024
1 parent 060b23e commit 42ff7d3
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,19 @@ def start(self):
return

if action == 'entry':
self.action = 'DEPO'
self.process_mmCIF('PDB','entry', rid)
elif action == 'Entry_Related_File':
self.action = 'DEPO'
self.process_Entry_Related_File('PDB', 'Entry_Related_File', rid)
elif action == 'export':
self.action = 'SUBMIT'
self.export_mmCIF('PDB', 'entry', rid)
elif action == 'accession_code':
self.action = 'SUBMISSION COMPLETE'
self.set_accession_code(rid)
elif action == 'release_mmCIF':
self.action = 'RELEASE READY'
self.addReleaseRecords(rid)
else:
self.logger.error('Unknown action: "%s".' % action)
Expand Down Expand Up @@ -456,7 +461,10 @@ def export_mmCIF(self, schema_pdb, table_entry, rid, release=False, user_id=None
if release == True:
process_status_error = Process_Status_Terms['ERROR_RELEASING_ENTRY']
else:
process_status_error = Process_Status_Terms['ERROR_GENERATING_SYSTEM_FILES']
if self.action == 'SUBMIT':
process_status_error = Process_Status_Terms['ERROR_GENERATING_mmCIF_FILE']
else:
process_status_error = Process_Status_Terms['ERROR_GENERATING_SYSTEM_FILES']

deriva_tables = ['entry']
mmCIF_tables = []
Expand Down

0 comments on commit 42ff7d3

Please sign in to comment.