We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d8bc80 commit f1cb688Copy full SHA for f1cb688
src/mdio/schemas/v1/dataset_serializer.py
@@ -154,7 +154,8 @@ def _get_fill_value(data_type: ScalarType | StructuredType | str) -> any:
154
return fill_value_map.get(data_type)
155
if isinstance(data_type, StructuredType):
156
numpy_dtype = to_numpy_dtype(data_type)
157
- return np.void((), dtype=numpy_dtype)
+ fill_value = (0,) * len(numpy_dtype.fields)
158
+ return np.void(fill_value, dtype=numpy_dtype)
159
if isinstance(data_type, str):
160
return ""
161
# If we do not have a fill value for this type, use None
0 commit comments