Skip to content

deprecate old creation functions #3976

@d-v-b

Description

@d-v-b

the create function has a few things against it:

  • it uses zarr python 2.x parameters, many of which do nothing (synchronizer, chunk_store, object_codec)
  • it has an ambiguous name. create what?
  • it is functionally superseded by the create_array function, which doesn't suffer the previously stated deficiencies

I recommend deprecating create, and deprecating the use of the create-style signature in functions that wrap it. this would entail:

  • adding a deprecation warning to the create function, indicating that it will be removed in the next minor release (3.3.0), and directing people to use create_array instead.
  • adding deprecations as needed to any of the functions that use create (I think zeros, empty, etc all use it). Upon release 3.3.0, these functions will all wrap create_array and use keyword arguments suitable for it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions