-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy path__init__.py
More file actions
15 lines (13 loc) · 920 Bytes
/
__init__.py
File metadata and controls
15 lines (13 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""This module implements some common total variation regularization methods
"""
try:
import cvxpy
from ._total_variation_regularization import velocity, acceleration, jerk, jerk_sliding, smooth_acceleration
except:
from warnings import warn
warn("Limited Total Variation Regularization Support Detected! CVXPY is not installed. " +
"Many Total Variation Methods require CVXPY including: velocity, acceleration, jerk, jerk_sliding, smooth_acceleration. " +
"Please install CVXPY to use these methods. Recommended to also install MOSEK and obtain a MOSEK license. " +
"You can still use: total_variation_regularization.iterative_velocity.")
from ._total_variation_regularization import iterative_velocity
__all__ = ['velocity', 'acceleration', 'jerk', 'jerk_sliding', 'smooth_acceleration', 'iterative_velocity'] # So these get treated as direct members of the module by sphinx