Skip to content

Commit

Permalink
Fix bug in extracting extension from filename -- was never loading h5…
Browse files Browse the repository at this point in the history
… files. Closes #9
  • Loading branch information
benlansdell committed Feb 1, 2024
1 parent 2b625c2 commit 9327a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethome/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def read_DLC_tracks(
"""

ext = os.path.splitext(fn_in)[1]
if ext == "h5" or ext == "hdf5" or ext == "hdf":
if ext == ".h5" or ext == ".hdf5" or ext == ".hdf":
df = pd.read_hdf(fn_in)
ext = "h5"
else:
Expand Down

0 comments on commit 9327a4c

Please sign in to comment.