From 75d7c0d06a222787d5816a2fad1326f4b0f1e5f6 Mon Sep 17 00:00:00 2001 From: MattBrst <41747007+MattBrst@users.noreply.github.com> Date: Thu, 30 May 2024 07:43:22 +0200 Subject: [PATCH] Accept files with extension XML as well (#216) 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 --- hydropandas/io/solinst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydropandas/io/solinst.py b/hydropandas/io/solinst.py index 1b145380..326c6f78 100644 --- a/hydropandas/io/solinst.py +++ b/hydropandas/io/solinst.py @@ -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)