Skip to content

Commit

Permalink
fix: handle numpy files with a '.' in the name more gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Feb 7, 2024
1 parent 4bc8797 commit 8412474
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions igneous_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,9 @@ def create(
def normalize_file_ext(filename):
filename, ext = os.path.splitext(filename)

if ext in (".npy", ".ckl", ".cpso", ".hdf5", ".h5"):
return ext

while True:
filename, ext2 = os.path.splitext(filename)
if ext2 in ('.ckl', '.cpso'):
Expand Down

0 comments on commit 8412474

Please sign in to comment.