Skip to content

Commit

Permalink
Merge pull request #37 from alimanfoo/hierarchy
Browse files Browse the repository at this point in the history
Hierarchical storage, resolves #26.
  • Loading branch information
alimanfoo committed Aug 30, 2016
2 parents 3c6f4d9 + 4da5183 commit cd10a57
Show file tree
Hide file tree
Showing 34 changed files with 4,665 additions and 783 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@ zarr/version.py
*.zarr
*~
*.zip
example*
doesnotexist
1 change: 1 addition & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ API reference

api/creation
api/core
api/hierarchy
api/storage
api/compressors
api/sync
2 changes: 1 addition & 1 deletion docs/api/creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Array creation (``zarr.creation``)
.. autofunction:: ones
.. autofunction:: full
.. autofunction:: array
.. autofunction:: open
.. autofunction:: open_array
.. autofunction:: empty_like
.. autofunction:: zeros_like
.. autofunction:: ones_like
Expand Down
33 changes: 33 additions & 0 deletions docs/api/hierarchy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Groups (``zarr.hierarchy``)
===========================
.. module:: zarr.hierarchy

.. autofunction:: group
.. autofunction:: open_group

.. autoclass:: Group

.. automethod:: __len__
.. automethod:: __iter__
.. automethod:: __contains__
.. automethod:: __getitem__
.. automethod:: group_keys
.. automethod:: groups
.. automethod:: array_keys
.. automethod:: arrays
.. automethod:: create_group
.. automethod:: require_group
.. automethod:: create_groups
.. automethod:: require_groups
.. automethod:: create_dataset
.. automethod:: require_dataset
.. automethod:: create
.. automethod:: empty
.. automethod:: zeros
.. automethod:: ones
.. automethod:: full
.. automethod:: array
.. automethod:: empty_like
.. automethod:: zeros_like
.. automethod:: ones_like
.. automethod:: full_like
12 changes: 7 additions & 5 deletions docs/api/storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ Storage (``zarr.storage``)
==========================
.. module:: zarr.storage

This module contains a single :class:`DirectoryStore` class providing
a ``MutableMapping`` interface to a directory on the file
system. However, note that any object implementing the
``MutableMapping`` interface can be used as a Zarr array store.
This module contains storage classes for use with Zarr arrays and groups.
However, note that any object implementing the ``MutableMapping`` interface
can be used as a Zarr array store.

.. autofunction:: init_store
.. autofunction:: init_array
.. autofunction:: init_group

.. autoclass:: DictStore
.. autoclass:: DirectoryStore
.. autoclass:: ZipStore
1 change: 0 additions & 1 deletion docs/api/sync.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ Synchronization (``zarr.sync``)

.. autoclass:: ThreadSynchronizer
.. autoclass:: ProcessSynchronizer
.. autoclass:: SynchronizedArray
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Highlights
* Store arrays in memory, on disk, inside a Zip file, on S3, ...
* Read an array concurrently from multiple threads or processes.
* Write to an array concurrently from multiple threads or processes.
* Organize arrays into hierarchies via groups.

Status
------
Expand Down
15 changes: 15 additions & 0 deletions docs/release.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Release notes
=============

.. _release_2.0.0:

2.0.0
-----

Hierarchies
~~~~~~~~~~~

Support has been added for organizing arrays into hierarchies via groups. See
the tutorial section on :ref:`tutorial_groups` and the :mod:`zarr.hierarchy`
API docs for more information.

To accommodate support for hierarchies the Zarr format has been modified. See
the :ref:`spec_v2` for more information.

.. _release_1.1.0:

1.1.0
Expand Down
3 changes: 3 additions & 0 deletions docs/spec.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.. _spec:

Specifications
==============

.. toctree::
:maxdepth: 3

spec/v1
spec/v2
5 changes: 5 additions & 0 deletions docs/spec/v1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT",
interpreted as described in `RFC 2119
<https://www.ietf.org/rfc/rfc2119.txt>`_.

Status
------

This specification is deprecated. See :ref:`spec` for the latest version.

Storage
-------

Expand Down

0 comments on commit cd10a57

Please sign in to comment.