From 2812d19ef76c0ab2a59e32ea3407273157691559 Mon Sep 17 00:00:00 2001 From: Mattia Almansi Date: Tue, 28 May 2024 17:07:30 +0200 Subject: [PATCH] fix extension check --- c3s_eqc_automatic_quality_control/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c3s_eqc_automatic_quality_control/download.py b/c3s_eqc_automatic_quality_control/download.py index d28ce4e..74cbc63 100644 --- a/c3s_eqc_automatic_quality_control/download.py +++ b/c3s_eqc_automatic_quality_control/download.py @@ -436,7 +436,7 @@ def _download_and_transform_requests( ) if all( - isinstance(source, str) and (".grib", ".grb", ".grb1", ".grb2") + isinstance(source, str) and source.endswith((".grib", ".grb", ".grb1", ".grb2")) for source in sources ): open_mfdataset_kwargs["preprocess"] = preprocess