From acb233a2f75c81151b4dcd507c8c2ff931199a45 Mon Sep 17 00:00:00 2001 From: qitianshi <65122416+qitianshi@users.noreply.github.com> Date: Mon, 4 Apr 2022 18:44:52 +0800 Subject: [PATCH] Fix #109 --- analysis/oscil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysis/oscil.py b/analysis/oscil.py index 67429254..36e08f03 100644 --- a/analysis/oscil.py +++ b/analysis/oscil.py @@ -16,7 +16,7 @@ def load_npy(date: str = None): for file in os.listdir(paths.data.raw(date)): - if file.endswith(".npy"): + if os.path.splitext(file)[1].strip('.') == "npy": #TODO: raise FileNotFoundError