mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2025-01-08 13:14:28 +00:00
zarr roundtripping strings to/from json
This commit is contained in:
parent
e942da4bec
commit
616785e6ed
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ class ZarrJsonDict(JsonDict):
|
|||
if self.file:
|
||||
array = ZarrArrayPath(file=self.file, path=self.path)
|
||||
else:
|
||||
array = zarr.array(self.value, dtype=self.dtype)
|
||||
dtype = np.str_ if self.dtype == "str" else self.dtype
|
||||
array = zarr.array(self.value, dtype=dtype)
|
||||
return array
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue