Skip to content

Commit

Permalink
Stop platon also when the cif has no error at all
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Jan 15, 2024
1 parent e7455c5 commit 8f67171
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion finalcif/tools/platon.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ def _on_ready_read(self):
def _monitor_output_log(self):
while not self.is_stopped:
self.tick.emit('#')
time.sleep(1)
time.sleep(0.3)
try:
log_file = self.cif_file.with_suffix('.chk').read_text('latin1', errors='ignore')
if 'Unresolved or to be Checked Issue' in log_file:
self._stop_program()
if '! Congratulations !' in log_file:
self._stop_program()
except FileNotFoundError:
break

Expand Down

0 comments on commit 8f67171

Please sign in to comment.