Skip to content

Commit adbf1de

Browse files
committed
Remove numpy reference/check
1 parent 1028170 commit adbf1de

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pyomo/common/numeric_types.py

-7
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,6 @@ def check_if_logical_type(obj):
228228
if obj_class in native_types:
229229
return obj_class in native_logical_types
230230

231-
if 'numpy' in obj_class.__module__:
232-
# trigger the resolution of numpy_available and check if this
233-
# type was automatically registered
234-
bool(numpy_available)
235-
if obj_class in native_types:
236-
return obj_class in native_logical_types
237-
238231
try:
239232
if all(
240233
(

0 commit comments

Comments
 (0)