Skip to content

Commit

Permalink
Update align.py
Browse files Browse the repository at this point in the history
check possible fix
  • Loading branch information
talagayev authored Jan 11, 2025
1 parent fdb4f35 commit c37add2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/MDAnalysis/analysis/align.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,8 @@ def _single_frame(self):
self._writer.write(mobile_atoms)

def _conclude(self):
self._writer.close()
if self._writer:
self._writer.close()
if not self._verbose:
logging.disable(logging.NOTSET)

Expand Down

0 comments on commit c37add2

Please sign in to comment.