Skip to content

Commit

Permalink
Update XDR.py
Browse files Browse the repository at this point in the history
test _read_offsets adjustment
  • Loading branch information
talagayev authored Nov 23, 2024
1 parent c98a11f commit 97927bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions package/MDAnalysis/coordinates/XDR.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ def _load_offsets(self):
pass
except OSError as e:
if isinstance(e, PermissionError) or e.errno == errno.EROFS:
warnings.warn(f"Cannot write lock/offset file in same location as "
f"{self.filename}. Using slow offset calculation.")
self._read_offsets(store=True)
self._read_offsets(store=False)
return
else:
raise
Expand Down

0 comments on commit 97927bb

Please sign in to comment.