Skip to content

Support inline_array kwarg in open_zarr #8095

Open
@dcherian

Description

@dcherian

cc @TomNicholas

What happened?

There is no way to specify inline_array in open_zarr. Instead we have to use open_dataset.

Minimal Complete Verifiable Example

import xarray as xr

xr.Dataset({"a": xr.DataArray([1.0])}).to_zarr("temp.zarr")
xr.open_zarr('temp.zarr', inline_array=True)
ValueError: argument inline_array cannot be passed both as a keyword argument and within the from_array_kwargs dictionary
xr.open_zarr('temp.zarr', from_array_kwargs=dict(inline_array=True))
ValueError: argument inline_array cannot be passed both as a keyword argument and within the from_array_kwargs dictionary

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions