forked from zarr-developers/zarr-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreation.py
More file actions
48 lines (42 loc) · 794 Bytes
/
creation.py
File metadata and controls
48 lines (42 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"""
Helpers for creating arrays.
.. warning::
This sub-module is deprecated. All functions here are defined
in the top level zarr namespace instead.
"""
import warnings
from zarr.api.synchronous import (
array,
create,
empty,
empty_like,
full,
full_like,
ones,
ones_like,
open_array,
open_like,
zeros,
zeros_like,
)
from zarr.errors import ZarrDeprecationWarning
__all__ = [
"array",
"create",
"empty",
"empty_like",
"full",
"full_like",
"ones",
"ones_like",
"open_array",
"open_like",
"zeros",
"zeros_like",
]
warnings.warn(
"zarr.creation is deprecated. "
"Import these functions from the top level zarr. namespace instead.",
ZarrDeprecationWarning,
stacklevel=2,
)