Skip to content

Commit 4a90f09

Browse files
committed
update imports
1 parent 0f3b245 commit 4a90f09

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Diff for: pyomo/contrib/coramin/__init__.py

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
from pyomo.common.dependencies import numpy, numpy_available, attempt_import
2+
from pyomo.common import unittest
3+
4+
if not numpy_available:
5+
raise unittest.SkipTest('numpy is not available')
6+
7+
pybnb, pybnb_available = attempt_import('pybnb')
8+
if not pybnb_available:
9+
raise unittest.SkipTest('pybnb is not available')
10+
111
from . import utils
212
from . import domain_reduction
313
from . import relaxations

Diff for: setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def __ne__(self, other):
276276
#'pathos', # requested for #963, but PR currently closed
277277
'pint', # units
278278
'plotly', # incidence_analysis
279+
'pybnb', # coramin
279280
'python-louvain', # community_detection
280281
'pyyaml', # core
281282
# qtconsole also requires a supported Qt version (PyQt5 or PySide6).

0 commit comments

Comments
 (0)