Closed alexsquires closed 1 year ago
What happens if a user gives the file name my_file
? (Sorry only reading not testing so this is a genuine question).
It works, because the split(".") returns the whole string in a single element list.
In [5]: "my_file".split(".")
Out[5]: ['my_file']
In [6]: "my_file".split(".")[0] + ".hdf"
Out[6]: 'my_file.hdf'
Ahh even if there is no full stop! Nice one.
I don’t think this functionality is covered by tests at all yet. Could you add them and we can bump the 91% coverage up a bit?
Oops. Missing a CI dependancy again
Looks good to me! Let’s merge.
Thanks @alexsquires, another awesome contribution.
My proposed solution to #33