From 2885f8ab44851b6f16f7429ce9794e5e088baf92 Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Wed, 17 Jun 2026 09:28:53 +0200 Subject: [PATCH] Avoid full download of all tutorial datasets Fixes #2676 --- src/parcels/_datasets/remote.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parcels/_datasets/remote.py b/src/parcels/_datasets/remote.py index e176a1fb2..c8fb9e0ac 100644 --- a/src/parcels/_datasets/remote.py +++ b/src/parcels/_datasets/remote.py @@ -144,7 +144,9 @@ def __init__(self, pup: pooch.Pooch, path_relative_to_pup: str, pre_decode_cf_ca # Function to apply to the dataset before the decoding the CF variables self.pup = pup self.pre_decode_cf_callable: None | Callable[[xr.Dataset], xr.Dataset] = pre_decode_cf_callable - self.v3_dataset_name = path_relative_to_pup.split("/")[0] + + first, second, *_ = path_relative_to_pup.split("/") + self.v3_dataset_name = f"{first}/{second}" # e.g., data/my_dataset def open_dataset(self) -> xr.Dataset: self.download_relevant_files()