Skip to content

Commit

Permalink
Fix up docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed Sep 18, 2019
1 parent 53c3b8e commit 5c3fc1a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 37 deletions.
6 changes: 0 additions & 6 deletions docs/generated/sparse.COO.format.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/generated/sparse.COO.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ COO
COO.density
COO.imag
COO.real
COO.format

.. rubric:: :doc:`Constructing COO objects <../construct>`
.. autosummary::
Expand Down
6 changes: 0 additions & 6 deletions docs/generated/sparse.DOK.format.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/generated/sparse.DOK.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ DOK
DOK.nnz

DOK.size

DOK.format



Expand Down
20 changes: 0 additions & 20 deletions sparse/_sparse_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,26 +78,6 @@ def nnz(self):
True
"""

@property
@classmethod
def format(cls):
"""
The storage format of this array.
Returns
-------
str
The storage format of this array.
Examples
-------
>>> import sparse
>>> s = sparse.random((5,5), density=0.2)
>>> s.format
'coo'
"""
return cls.__name__.lower()

@property
def ndim(self):
"""
Expand Down
4 changes: 2 additions & 2 deletions sparse/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def html_table(arr):
table += "<tbody>"
headings = ["Format", "Data Type", "Shape", "nnz", "Density", "Read-only"]
info = [
arr.format,
type(arr).__name__.lower(),
str(arr.dtype),
str(arr.shape),
str(arr.nnz),
Expand All @@ -315,7 +315,7 @@ def html_table(arr):
)

# compressed_axes
if arr.format == "gcxs":
if type(arr).__name__ == "GCXS":
headings.append("Compressed Axes")
info.append(str(arr.compressed_axes))

Expand Down

0 comments on commit 5c3fc1a

Please sign in to comment.