diff --git a/package/MDAnalysis/coordinates/XDR.py b/package/MDAnalysis/coordinates/XDR.py index 0596241533..dbdfe68ab6 100644 --- a/package/MDAnalysis/coordinates/XDR.py +++ b/package/MDAnalysis/coordinates/XDR.py @@ -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