Skip to content

Commit 36a3e71

Browse files
author
Francis Motta
committed
added configurations to provide links to and documentation of documented class methods and attributes, changed member order to groupwise from its default alphabetical to ensure class methods appear grouped together in the documentation html ahead of attributes which alspo appear grouped together, added docstrings for public attributes of PersistenceImager
1 parent 60e8ce8 commit 36a3e71

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@
2121

2222
html_short_title = project
2323
htmlhelp_basename = 'Persimdoc'
24+
25+
autodoc_default_options = {
26+
'members': True
27+
}
28+
29+
autodoc_member_order = 'groupwise'

docs/reference/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Persistence Images
2121

2222
.. autosummary::
2323
:toctree: stubs
24+
:recursive:
2425
:nosignatures:
2526

2627
persim.PersistenceImager

persim/images.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,18 +329,50 @@ def __init__(self, birth_range=None, pers_range=None, pixel_size=None, weight=No
329329

330330
@property
331331
def width(self):
332+
"""
333+
Persistence image width.
334+
335+
Returns
336+
-------
337+
width : float
338+
The width of the region of the birth-persistence plane covered by the persistence image in birth units.
339+
"""
332340
return self._width
333341

334342
@property
335343
def height(self):
344+
"""
345+
Persistence image height.
346+
347+
Returns
348+
-------
349+
height : float
350+
The height of the region of the birth-persistence plane covered by the persistence image in persistence units.
351+
"""
336352
return self._height
337353

338354
@property
339355
def resolution(self):
356+
"""
357+
Persistence image resolution.
358+
359+
Returns
360+
-------
361+
resolution : pair of ints (width, height)
362+
The number of pixels along each dimension of the persistence image, determined by the birth and persistence ranges and the pixel size.
363+
"""
340364
return self._resolution
341365

342366
@property
343367
def pixel_size(self):
368+
"""
369+
Persistence image square pixel dimensions.
370+
371+
Returns
372+
-------
373+
pixel_size : float
374+
The width (and height) in birth/persistence units of each square pixel in the persistence image.
375+
"""
344376
return self._pixel_size
345377

346378
@pixel_size.setter
@@ -353,6 +385,14 @@ def pixel_size(self, val):
353385

354386
@property
355387
def birth_range(self):
388+
"""
389+
Range of birth values covered by the persistence image.
390+
391+
Returns
392+
-------
393+
birth_range : pair of floats (min. birth, max. birth)
394+
The minimum and maximum birth values covered by the persistence image.
395+
"""
356396
return self._birth_range
357397

358398
@birth_range.setter
@@ -364,6 +404,14 @@ def birth_range(self, val):
364404

365405
@property
366406
def pers_range(self):
407+
"""
408+
Range of persistence values covered by the persistence image.
409+
410+
Returns
411+
-------
412+
pers_range : pair of floats (min. persistence, max. persistence)
413+
The minimum and maximum persistence values covered by the persistence image.
414+
"""
367415
return self._pers_range
368416

369417
@pers_range.setter

0 commit comments

Comments
 (0)