File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,8 +77,11 @@ def get_metadata():
7777 'scikit-learn>=0.18.0' ,
7878 'pandas>=0.19.0' ,
7979 'statsmodels>=0.8.0' ,
80- # 'ipopt>=0.1.5',
81- 'dcor>=0.3'
82- ]
80+ 'dcor>=0.3' ,
81+ 'sympy>=1.0'
82+ ],
83+ extras_require = {
84+ 'ipopt' : ['cyipopt>=1.0.0' ],
85+ }
8386)
8487
Original file line number Diff line number Diff line change 1212__version__ = "1.1.3"
1313__date__ = "2024-05-23"
1414
15- # The commented lines can be uncommented if IPOPT has been installed independently.
16-
1715from .preprocessing .robcent import (
1816 VersatileScaler ,
1917 versatile_scale ,
3230from .ppdire .ppdire import ppdire
3331from .ppdire .capi import capi
3432from .dicomo .dicomo import dicomo
35- from .sudire .sudire import sudire , estimate_structural_dim
36- from .plot .sudire_plot import sudire_plot
3733from .plot .ppdire_plot import ppdire_plot
3834from .plot .sprm_plot import sprm_plot , sprm_plot_cv
39- from .ipopt_temp .ipopt_wrapper import minimize_ipopt
40- from .ipopt_temp .jacobian import *
35+
36+ # Optional imports requiring cyipopt (install with: pip install direpack[ipopt])
37+ try :
38+ from .sudire .sudire import sudire , estimate_structural_dim
39+ from .plot .sudire_plot import sudire_plot
40+ from .ipopt_temp .ipopt_wrapper import minimize_ipopt
41+ from .ipopt_temp .jacobian import *
42+ IPOPT_AVAILABLE = True
43+ except ImportError :
44+ IPOPT_AVAILABLE = False
You can’t perform that action at this time.
0 commit comments