From 97927bb681d6a41cbeec272eb884a9c3591a16dc Mon Sep 17 00:00:00 2001 From: Valerij Talagayev <82884038+talagayev@users.noreply.github.com> Date: Sat, 23 Nov 2024 01:49:31 +0100 Subject: [PATCH] Update XDR.py test _read_offsets adjustment --- package/MDAnalysis/coordinates/XDR.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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