Skip to content

Commit

Permalink
fix extension check
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed May 28, 2024
1 parent 2208ba8 commit 2812d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c3s_eqc_automatic_quality_control/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2812d19

Please sign in to comment.