Skip to content

Commit

Permalink
Use JSON encoding for objects when writing zarr
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Mar 19, 2024
1 parent a0043fb commit 5469721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daskms/experimental/zarr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def zarr_chunks(column, dims, chunks):
def create_array(ds_group, column, column_schema, schema_chunks, coordinate=False):
import numcodecs

codec = numcodecs.Pickle() if column_schema.dtype == object else None
codec = numcodecs.JSON() if column_schema.dtype == object else None

if column_schema.chunks is None:
try:
Expand Down

0 comments on commit 5469721

Please sign in to comment.