Skip to content

Use Zarr v3 best practises and remove warnings #447

@jeromekelleher

Description

@jeromekelleher

We're getting a lot of warnings currently. Would be good to follow what has hopefully settled as being best practices for v3 and get rid of them.

====================================== warnings summary ======================================
tests/test_tskit.py: 96 warnings
  /home/jk/work/github/bio2zarr/bio2zarr/zarr_utils.py:47: ZarrDeprecationWarning: Use Group.create_array instead.
    array = group.array(                                                                      
                                                                                              
tests/test_tskit.py: 18 warnings                                                              
  /home/jk/work/github/bio2zarr/.venv/lib/python3.12/site-packages/zarr/core/group.py:3108: ZarrUserWarning: The `compressor` argument is deprecated. Use `compressors` instead.
    compressors = _parse_deprecated_compressor(compressor, compressors)
                                                                                              
tests/test_tskit.py: 96 warnings                                                              
  /home/jk/work/github/bio2zarr/.venv/lib/python3.12/site-packages/zarr/core/group.py:3111: ZarrDeprecationWarning: Use AsyncGroup.create_array instead.
    self._async_group.create_dataset(                                                         

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions