Skip to content

Commit 4180190

Browse files
committed
moved module docstrings to the __init__.py files so they're picked up by sphinx
1 parent 44e3053 commit 4180190

9 files changed

Lines changed: 10 additions & 13 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""This module implements some common finite difference schemes
2+
"""
13
from ._finite_difference import first_order, second_order
24

35
__all__ = ['first_order', 'second_order'] # So these get treated as direct members of the module by sphinx

pynumdiff/finite_difference/_finite_difference.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
"""
2-
This module implements some common finite difference schemes
3-
"""
41
import numpy as np
52
from pynumdiff.utils import utility
63
from warnings import warn
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""This module implements Kalman filters
2+
"""
13
from ._kalman_smooth import constant_velocity, constant_acceleration, constant_jerk, known_dynamics, savgol_const_accel
24

35
__all__ = ['constant_velocity', 'constant_acceleration', 'constant_jerk', 'known_dynamics', 'savgol_const_accel'] # So these get treated as direct members of the module by sphinx

pynumdiff/kalman_smooth/_kalman_smooth.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
"""
2-
This module implements Kalman filters
3-
"""
41
import copy
52
import numpy as np
63

pynumdiff/linear_model/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""This module implements interpolation-based differentiation schemes.
2+
"""
13
try:
24
import cvxpy
35
from ._linear_model import lineardiff
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
1+
"""Apply smoothing method before finite difference.
2+
"""
23
from ._smooth_finite_difference import mediandiff, meandiff, gaussiandiff, friedrichsdiff, butterdiff, splinediff
34

45
__all__ = ['mediandiff', 'meandiff', 'gaussiandiff', 'friedrichsdiff', 'butterdiff', 'splinediff'] # So these get treated as direct members of the module by sphinx

pynumdiff/smooth_finite_difference/_smooth_finite_difference.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
"""
2-
Apply smoothing method before finite difference
3-
"""
41
import numpy as np
52
import scipy.signal
63

pynumdiff/total_variation_regularization/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""This module implements some common total variation regularization methods
2+
"""
13
try:
24
import cvxpy
35
from ._total_variation_regularization import velocity, acceleration, jerk, jerk_sliding, smooth_acceleration

pynumdiff/total_variation_regularization/_total_variation_regularization.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
"""
2-
This module implements some common total variation regularization methods
3-
"""
41
import logging
52
import numpy as np
63

0 commit comments

Comments
 (0)