Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
bd6a9e1
initial work on hierarchical data storage
alimanfoo Jul 25, 2016
933acf4
don't clear directory if mode == 'a'
alimanfoo Jul 25, 2016
38274d9
add placeholders
alimanfoo Jul 25, 2016
504bbc4
fix directory story behaviour with path that doesn't exist
alimanfoo Jul 25, 2016
a4e40f2
refactor storage tests, include MemoryStore; rename size() to nbytes_…
alimanfoo Jul 25, 2016
1cf2859
initial docs on groups
alimanfoo Jul 25, 2016
49a1a79
WIP ZipStore
alimanfoo Jul 26, 2016
d109aa9
implementation of ZipStore
alimanfoo Jul 26, 2016
8520b84
setup Group methods; add hierarchical names
alimanfoo Jul 26, 2016
16308e9
initial work on test suite for zarr.hierarchy module
alimanfoo Jul 27, 2016
ae838a2
WIP use only MutableMapping stores for hierarchies
alimanfoo Jul 28, 2016
4968961
WIP rewrite to use MutableMapping and prefix
alimanfoo Jul 28, 2016
fcfb1e9
rename ls to listdir for consistency with python standard library naming
alimanfoo Aug 1, 2016
06c263f
rename rm to rmdir for consistency with python standard library naming
alimanfoo Aug 1, 2016
76dbb54
reimplement dictstore
alimanfoo Aug 1, 2016
0bcb71f
get storage tests running
alimanfoo Aug 4, 2016
6061c3b
added storage hierarchy tests
alimanfoo Aug 4, 2016
afd93d5
tweak to storage hierarchy tests
alimanfoo Aug 4, 2016
c2fcb88
refactor storage
alimanfoo Aug 22, 2016
eb9e59b
compat
alimanfoo Aug 22, 2016
27049d5
add support for group metadata
alimanfoo Aug 22, 2016
e5b6fb8
fix tests for format version bump
alimanfoo Aug 22, 2016
64e16d2
refactor hierarchy module; all tests passing under py3
alimanfoo Aug 22, 2016
04aeb50
get tox tests running
alimanfoo Aug 22, 2016
a03b294
fix some issues with DictStore
alimanfoo Aug 22, 2016
ac30331
expose overwrite
alimanfoo Aug 22, 2016
759acab
improve hierarchy test coverage
alimanfoo Aug 22, 2016
2e0fff5
fix tutorial hierarchy examples
alimanfoo Aug 23, 2016
31474e7
implement require_dataset; improve hierarchy test coverage
alimanfoo Aug 23, 2016
ff4111b
comment
alimanfoo Aug 23, 2016
3ee6e11
increase test coverage
alimanfoo Aug 23, 2016
f5a52f6
increase test coverage
alimanfoo Aug 23, 2016
b6b9b63
work on storage test coverage
alimanfoo Aug 23, 2016
3e31f33
storage test coverage; rework DictStore
alimanfoo Aug 24, 2016
3a806b2
coverage to 100%
alimanfoo Aug 24, 2016
478ced7
write v2 spec; all tox passing
alimanfoo Aug 24, 2016
1f32d1f
documentation
alimanfoo Aug 24, 2016
35c250b
minor change to spec v2
alimanfoo Aug 24, 2016
e34007f
fix typo
alimanfoo Aug 25, 2016
5b88b6c
Group extends Mapping
alimanfoo Aug 25, 2016
030e251
change handling of h5py compatibility
alimanfoo Aug 25, 2016
8646227
test coverage for h5py compat; fix Group docstring
alimanfoo Aug 26, 2016
60a272b
implement chunk_store
alimanfoo Aug 26, 2016
001f69b
test nan fill value; improve meta tests
alimanfoo Aug 26, 2016
6977831
fix meta tests for PY2 and PY3
alimanfoo Aug 26, 2016
faf30a8
dont cover tests, causes build problems on travis
alimanfoo Aug 26, 2016
3b2e04f
implement auto-chunking
alimanfoo Aug 26, 2016
7635f99
encode NaN as "NaN"
alimanfoo Aug 26, 2016
8c8dbab
MUST
alimanfoo Aug 26, 2016
00facc9
encode infinity fill value; spec tweaks
alimanfoo Aug 26, 2016
4b4930c
minor typo
alimanfoo Aug 28, 2016
10531ee
refactor synchronization for simplicity
alimanfoo Aug 30, 2016
39a66c9
test fixes
alimanfoo Aug 30, 2016
dc18335
WIP synchronized group
alimanfoo Aug 30, 2016
d39b08f
implement group synchronization; refactor array synchronization
alimanfoo Aug 30, 2016
4da5183
coverage to 100%; readonly->read_only
alimanfoo Aug 30, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading