Skip to content

Commit 8b1cd29

Browse files
committed
MAINT: possibly_open_file
1 parent a534f47 commit 8b1cd29

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

refellips/dataSE.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def refresh(self):
251251
252252
"""
253253
if self.filename is not None:
254-
with open(self.filename) as f:
254+
with possibly_open_file(self.filename) as f:
255255
self.load(f)
256256

257257

@@ -497,7 +497,7 @@ def open_HORIBAfile(
497497
linenodict = {}
498498
MDingest = False
499499

500-
with open(fname, "r") as f:
500+
with possibly_open_file(fname, "r") as f:
501501
lines = f.readlines()
502502

503503
for i, line in enumerate(lines):

0 commit comments

Comments
 (0)