Skip to content

Commit

Permalink
bug fix: get space group from aimless log file if file contains outpu…
Browse files Browse the repository at this point in the history
…t from other programs like unique
  • Loading branch information
tkrojer committed Dec 18, 2018
1 parent 63cf6c7 commit 607c077
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/XChemThread.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ def run(self):
self.Logfile.insert('WARNING: this could potentially lead to a crash...')
for i in range(counter):
self.Logfile.insert('qsub -q medium.q -N acedrg xce_acedrg_{0!s}.sh'.format((str(i+1))))
os.system('qsub -q medium.q -N acedrg xce_acedrg_{0!s}.sh'.format((str(i+1))))
os.system('qsub -N acedrg xce_acedrg_{0!s}.sh'.format((str(i+1))))
else:
self.Logfile.insert('running %s consecutive ACEDRG jobs on your local machine')
for i in range(counter):
Expand Down
2 changes: 2 additions & 0 deletions lib/XChemUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,8 @@ def read_aimless_logfile(self,logfile):
if 'Total number unique' in line and len(line.split())==6:
self.aimless['DataProcessingUniqueReflectionsOverall']=line.split()[3]
if line.startswith('Space group:') or line.startswith(' Spacegroup name'):
if 'Laue' in line:
continue
if 'Spacegroup name' in line:
self.aimless['DataProcessingSpaceGroup'] = line.replace(' Spacegroup name', '')[:-1].replace(' ','')
else:
Expand Down

0 comments on commit 607c077

Please sign in to comment.