Skip to content

Commit 47997e3

Browse files
committed
Merge branch 'main' of github.com:zarr-developers/zarr-python into feat/numcodecs-compat
2 parents 1fd5e86 + a5dcf42 commit 47997e3

55 files changed

Lines changed: 5335 additions & 510 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

changes/3151.bugfix.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed an issue preventing correct parsing of NumPy ``int32`` dtypes when constructed via
2+
``np.dtype('i')``.

changes/3157.doc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add a self-contained example of data type extension to the ``examples`` directory, and expanded
2+
the documentation for data types.

changes/3170.bugfix.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Fixes a variety of issues related to string data types.
2+
3+
- Brings the ``VariableLengthUTF8`` data type Zarr V3 identifier in alignment with Zarr Python 3.0.8
4+
- Disallows creation of 0-length fixed-length data types
5+
- Adds a regression test for the ``VariableLengthUTF8`` data type that checks against version 3.0.8
6+
- Allows users to request the ``VariableLengthUTF8`` data type with ``str``, ``"str"``, or ``"string"``.

changes/3191.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added `NDBuffer.empty` method for faster ndbuffer initialization.

changes/3193.bugfix.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Removed an unnecessary check from ``_fsspec._make_async`` that would raise an exception when
2+
creating a read-only store backed by a local file system with ``auto_mkdir`` set to ``False``.

changes/3195.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add missing import for AsyncFileSystemWrapper for _make_async in _fsspec.py

changes/3198.bugfix.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Restores the ability to create a Zarr V2 array with a ``null`` fill value by introducing a new
2+
class ``DefaultFillValue``, and setting the default value of the ``fill_value`` parameter in array
3+
creation routines to an instance of ``DefaultFillValue``. For Zarr V3 arrays, ``None`` will act as an
4+
alias for a ``DefaultFillValue`` instance, thus preserving compatibility with existing code.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@
3838
extensions = [
3939
"sphinx.ext.autodoc",
4040
"sphinx.ext.autosummary",
41-
"sphinx.ext.viewcode",
4241
"sphinx.ext.intersphinx",
4342
'autoapi.extension',
4443
"numpydoc",
4544
"sphinx_issues",
4645
"sphinx_copybutton",
4746
"sphinx_design",
4847
'sphinx_reredirects',
48+
"sphinx.ext.viewcode",
4949
]
5050

5151
issues_github_path = "zarr-developers/zarr-python"
@@ -56,7 +56,7 @@
5656
autoapi_member_order = "groupwise"
5757
autoapi_root = "api"
5858
autoapi_keep_files = True
59-
autoapi_options = [ 'members', 'undoc-members', 'show-inheritance', 'show-module-summary', 'imported-members', ]
59+
autoapi_options = [ 'members', 'undoc-members', 'show-inheritance', 'show-module-summary', 'imported-members', 'inherited-members']
6060

6161
def skip_submodules(
6262
app: sphinx.application.Sphinx,

docs/user-guide/arrays.rst

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ The code above creates a 2-dimensional array of 32-bit integers with 10000 rows
2323
and 10000 columns, divided into chunks where each chunk has 1000 rows and 1000
2424
columns (and so there will be 100 chunks in total). The data is written to a
2525
:class:`zarr.storage.MemoryStore` (e.g. an in-memory dict). See
26-
:ref:`user-guide-persist` for details on storing arrays in other stores.
26+
:ref:`user-guide-persist` for details on storing arrays in other stores, and see
27+
:ref:`user-guide-data-types` for an in-depth look at the data types supported by Zarr.
2728

2829
For a complete list of array creation routines see the :mod:`zarr`
2930
module documentation.
@@ -629,29 +630,6 @@ Missing features in 3.0
629630

630631
The following features have not been ported to 3.0 yet.
631632

632-
.. _user-guide-objects:
633-
634-
Object arrays
635-
~~~~~~~~~~~~~
636-
637-
See the Zarr-Python 2 documentation on `Object arrays <https://zarr.readthedocs.io/en/support-v2/tutorial.html#object-arrays>`_ for more details.
638-
639-
.. _user-guide-strings:
640-
641-
Fixed-length string arrays
642-
~~~~~~~~~~~~~~~~~~~~~~~~~~
643-
644-
See the Zarr-Python 2 documentation on `Fixed-length string arrays <https://zarr.readthedocs.io/en/support-v2/tutorial.html#string-arrays>`_ for more details.
645-
646-
.. _user-guide-datetime:
647-
648-
Datetime and Timedelta arrays
649-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
650-
651-
See the Zarr-Python 2 documentation on `Datetime and Timedelta <https://zarr.readthedocs.io/en/support-v2/tutorial.html#datetimes-and-timedeltas>`_ for more details.
652-
653-
.. _user-guide-copy:
654-
655633
Copying and migrating data
656634
~~~~~~~~~~~~~~~~~~~~~~~~~~
657635

docs/user-guide/data_types.rst

Lines changed: 306 additions & 66 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)