Skip to content

Commit 49073aa

Browse files
committed
Fix type checking consistency
1 parent 40d92cb commit 49073aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/qcodes/dataset/data_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ def to_xarray_dataarray_dict(
10201020
self, data, use_multi_index=use_multi_index
10211021
)
10221022

1023-
return datadict
1023+
return {key: val[key] for key, val in datadict.items()}
10241024

10251025
def to_xarray_dataset(
10261026
self,

src/qcodes/dataset/data_set_cache.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,10 @@ def to_xarray_dataarray_dict(
200200
201201
"""
202202
data = self.data()
203-
return load_to_xarray_dataarray_dict(
203+
data_dict = load_to_xarray_dataarray_dict(
204204
self._dataset, data, use_multi_index=use_multi_index
205205
)
206+
return {key: val[key] for key, val in data_dict.items()}
206207

207208
def to_xarray_dataset(
208209
self, *, use_multi_index: Literal["auto", "always", "never"] = "auto"

0 commit comments

Comments
 (0)