Skip to content

Commit d8b842f

Browse files
committed
review docs; sure-up blosc refactor
1 parent 30ba89f commit d8b842f

20 files changed

+567
-442
lines changed

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
numcodecs
1+
Numcodecs
22
=========
33

4-
TODO
4+
Numcodecs is a Python package providing buffer compression and transformation
5+
codecs for use in data storage and communication applications.
56

67
.. image:: https://travis-ci.org/alimanfoo/numcodecs.svg?branch=master
78
:target: https://travis-ci.org/alimanfoo/numcodecs

adhoc/blosc_memleak_check.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import absolute_import, print_function, division
3+
import sys
4+
5+
6+
import numcodecs as codecs
7+
from numcodecs import blosc
8+
import numpy as np
9+
from numpy.testing import assert_array_equal
10+
11+
12+
codec = codecs.Blosc()
13+
data = np.arange(int(sys.argv[1]))
14+
for i in range(int(sys.argv[2])):
15+
enc = codec.encode(data)
16+
dec = codec.decode(enc)
17+
arr = np.frombuffer(dec, dtype=data.dtype)
18+
assert_array_equal(data, arr)

docs/abc.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
Codec
2-
=====
3-
.. module:: numcodecs.abc
1+
Codec API
2+
=========
3+
.. automodule:: numcodecs.abc
44

55
.. autoclass:: Codec
66

7+
.. autoattribute:: codec_id
78
.. automethod:: encode
89
.. automethod:: decode
910
.. automethod:: get_config

docs/blosc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Blosc
22
=====
3-
.. module:: numcodecs.blosc
3+
.. automodule:: numcodecs.blosc
44

55
.. autoclass:: Blosc
66

docs/bz2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BZ2
22
===
3-
.. module:: numcodecs.bz2
3+
.. automodule:: numcodecs.bz2
44

55
.. autoclass:: BZ2

docs/categorize.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Categorize
22
==========
3-
.. module:: numcodecs.categorize
3+
.. automodule:: numcodecs.categorize
44

55
.. autoclass:: Categorize

docs/checksum32.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
32-bit checksums
22
================
3-
.. module:: numcodecs.checksum32
3+
.. automodule:: numcodecs.checksum32
44

5+
CRC32
6+
-----
57
.. autoclass:: CRC32
8+
9+
Adler32
10+
-------
611
.. autoclass:: Adler32

docs/delta.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Delta
22
=====
3-
.. module:: numcodecs.delta
3+
.. automodule:: numcodecs.delta
44

55
.. autoclass:: Delta

docs/fixedscaleoffset.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FixedScaleOffset
22
================
3-
.. module:: numcodecs.fixedscaleoffset
3+
.. automodule:: numcodecs.fixedscaleoffset
44

55
.. autoclass:: FixedScaleOffset

docs/index.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
.. numcodecs documentation master file, created by
22
sphinx-quickstart on Mon May 2 21:40:09 2016.
33
4+
45
Numcodecs
56
=========
67

7-
This package contains compression and other codecs intended primarily for use
8-
with numerical data.
9-
10-
If you have a question, find a bug, would like to make a suggestion or
11-
contribute code, please `raise an issue on GitHub
12-
<https://github.com/alimanfoo/numcodecs/issues>`_.
8+
.. automodule:: numcodecs
139

1410
Installation
1511
------------
@@ -62,6 +58,7 @@ Contents
6258
packbits
6359
categorize
6460
checksum32
61+
registry
6562
release
6663

6764
Acknowledgments

0 commit comments

Comments
 (0)