From 23b369f1c09e0ecb689d8be80833b626258ffb6d Mon Sep 17 00:00:00 2001 From: "Timothy P. Ellsworth Bowers" Date: Wed, 1 Nov 2023 10:19:32 -0700 Subject: [PATCH] Format of cached files modified: pypeit/data/utils.py --- pypeit/data/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypeit/data/utils.py b/pypeit/data/utils.py index 41c32c7c53..cba62b0153 100644 --- a/pypeit/data/utils.py +++ b/pypeit/data/utils.py @@ -247,7 +247,7 @@ def get_reid_arxiv_filepath(arxiv_file: str) -> tuple[pathlib.Path, str]: reid_path = fetch_remote_file(arxiv_file, "arc_lines/reid_arxiv") # Return the path to the `reid_arxiv` file, and the file format - return reid_path, reid_path.suffix.replace('.','').lower() + return reid_path, arxiv_file.split('.')[-1].lower() def get_skisim_filepath(skisim_file: str) -> pathlib.Path: