Skip to content

Commit

Permalink
handle the zero coords case
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Sep 14, 2023
1 parent b1f81a6 commit 0d9a313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qcodes/dataset/data_set_in_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def _from_xarray_dataset_to_qcodes_raw_data(
coords_arrays = np.meshgrid(*coords_unexpanded, indexing="ij")
for coord_name, coord_array in zip(data.dims, coords_arrays):
output[str(datavar)][str(coord_name)] = coord_array
else:
elif len(all_coords) == 1:
coords = all_coords[0]
for coord_name, coord in coords.items():
output[str(datavar)][str(coord_name)] = coord.data
Expand Down

0 comments on commit 0d9a313

Please sign in to comment.