Skip to content

Conversation

@jsignell
Copy link
Member

@jsignell jsignell commented Jan 21, 2026

Down to 4 failures locally which all seem to have special handling for zarr_3 so should be quick to fix

FAILED xarray/tests/test_backends.py::TestZarrNoConsolidatedMetadataSupport::test_roundtrip_empty_vlen_string_array[3] - AssertionError: assert False
FAILED xarray/tests/test_backends.py::TestZarrDirectoryStore::test_roundtrip_empty_vlen_string_array[3] - AssertionError: assert False
FAILED xarray/tests/test_backends.py::TestZarrWriteEmpty::test_roundtrip_empty_vlen_string_array[3] - AssertionError: assert False
FAILED xarray/tests/test_backends.py::TestZarrDictStore::test_roundtrip_empty_vlen_string_array[3] - AssertionError: assert False

@github-actions github-actions bot added topic-backends topic-zarr Related to zarr storage library topic-arrays related to flexible array support io labels Jan 21, 2026
@jsignell jsignell changed the title String dtype Use StringDType when reading from zarr string variables Jan 21, 2026
@jsignell jsignell marked this pull request as ready for review January 22, 2026 14:23
@jsignell jsignell linked an issue Jan 22, 2026 that may be closed by this pull request
5 tasks
# timedelta64 inherits from np.integer
return isnat(data)
elif HAS_STRING_DTYPE and isinstance(scalar_type, np.dtypes.StringDType):
return xp.isnan(data)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StringDType has a custom na_object property. Is that relevant here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

io topic-arrays related to flexible array support topic-backends topic-zarr Related to zarr storage library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zarr chunks ignored when reading arrays with StringDType Fix NA semantics for numpy.StringDType

2 participants