Skip to content

Commit

Permalink
Accept files with extension XML as well (#216)
Browse files Browse the repository at this point in the history
When exporting data from the Solinst Levelogger Software, the extension '.xml' is used. Files with this extension can be read as well.

Co-authored-by: OnnoEbbens <onnoebbens@gmail.com>
  • Loading branch information
MattBrst and OnnoEbbens authored May 30, 2024
1 parent 9f16f97 commit 75d7c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydropandas/io/solinst.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def read_solinst_file(
# open file
path = str(path)
name = os.path.splitext(os.path.basename(path))[0]
if path.endswith(".xle"):
if path.endswith(tuple([".xle", ".xml"])):
f = path
elif path.endswith(".zip"):
zf = zipfile.ZipFile(path)
Expand Down

0 comments on commit 75d7c0d

Please sign in to comment.