You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow writing StringDType variables to netCDF (pydata#11218)
* Allow writing StringDType variables to netCDF (pydata#11199)
Recognize numpy.dtypes.StringDType (kind "T") as a unicode string type
in is_unicode_dtype, and convert StringDType arrays to object arrays
before passing to netCDF4/h5netcdf backends which don't support
StringDType natively. Null values from StringDType(na_object=None) are
replaced with empty strings on write.
Co-authored-by: Claude <noreply@anthropic.com>
* Add StringDType null handling for scipy and tests for review feedback
- Handle StringDType null values in encode_string_array (scipy/nc3 path)
- Add roundtrip tests for StringDType with na_object=None and na_object=""
- Add unit test for encode_string_array with StringDType nulls
Co-Authored-By: Claude <noreply@anthropic.com>
* Move StringDType handling into shared encoder (pydata#11199)
Convert StringDType to fixed-width unicode (U) in EncodedStringCoder.encode()
instead of per-backend prepare_variable, fixing Zarr and CFEncodedDataStore.
Co-authored-by: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Julia Signell <jsignell@gmail.com>
0 commit comments