Skip to content

Commit

Permalink
Merge branch 'main' into fix_deepsource.io_issues
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Jul 18, 2022
2 parents 9311003 + 7212d26 commit 8204a5d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ test_patterns = ["zarr/tests/test_*.py"]
[[analyzers]]
name = "python"
enabled = true

[analyzers.meta]
runtime_version = "3.x.x"
12 changes: 9 additions & 3 deletions docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ Release notes
# to document your changes. On releases it will be
# re-indented so that it does not show up in the notes.
.. _unreleased:
.. _unreleased:

Unreleased
----------

Documentation
~~~~~~~~~~~~~

* Typo fixes to close quotes. By :user:`Pavithra Eswaramoorthy <pavithraes>`

Unreleased
----------

.. _release_2.12.0:

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1404,15 +1404,15 @@ access patterns and incur a substantial performance hit when using
file based stores. One of the most pathological examples is
switching from column-based chunking to row-based chunking e.g. ::

>>> a = zarr.zeros((10000,10000), chunks=(10000, 1), dtype='uint16, store='a.zarr')
>>> a = zarr.zeros((10000,10000), chunks=(10000, 1), dtype='uint16', store='a.zarr')
>>> b = zarr.array(a, chunks=(1,10000), store='b.zarr')

which will require every chunk in the input data set to be repeatedly read when creating
each output chunk. If the entire array will fit within memory, this is simply resolved
by forcing the entire input array into memory as a numpy array before converting
back to zarr with the desired chunking. ::

>>> a = zarr.zeros((10000,10000), chunks=(10000, 1), dtype='uint16, store='a.zarr')
>>> a = zarr.zeros((10000,10000), chunks=(10000, 1), dtype='uint16', store='a.zarr')
>>> b = a[...]
>>> c = zarr.array(b, chunks=(1,10000), store='c.zarr')

Expand Down

0 comments on commit 8204a5d

Please sign in to comment.