Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #127 from qitianshi/109-splitext
Browse files Browse the repository at this point in the history
Fix #109
  • Loading branch information
qitianshi authored Apr 4, 2022
2 parents e0ae154 + acb233a commit 7a13f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysis/oscil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7a13f95

Please sign in to comment.