mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2025-01-09 05:34:27 +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:
|
if self.file:
|
||||||
array = ZarrArrayPath(file=self.file, path=self.path)
|
array = ZarrArrayPath(file=self.file, path=self.path)
|
||||||
else:
|
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
|
return array
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue