From b62d0c484151378e6b086ed8b904ac1ab3526dac Mon Sep 17 00:00:00 2001 From: Jan-Lukas Wynen Date: Mon, 16 Feb 2026 13:06:46 +0100 Subject: [PATCH] Use a list as arg to drop_coords --- src/ess/dream/instrument_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ess/dream/instrument_view.py b/src/ess/dream/instrument_view.py index 9300c197..1ed171d2 100644 --- a/src/ess/dream/instrument_view.py +++ b/src/ess/dream/instrument_view.py @@ -13,7 +13,7 @@ def _to_data_array( data = sc.DataGroup({"": data}) pieces = [] for da in data.values(): - da = da.drop_coords(set(da.coords) - {"position", dim}) + da = da.drop_coords(list(set(da.coords) - {"position", dim})) dims = list(da.dims) if (dim is not None) and (dim in dims): # Ensure that the dims to be flattened are contiguous