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