Skip to content

Commit 468a09c

Browse files
committed
MAINT: bump array-api-compat to simplify array_namespace
[skip cirrus] [skip circle]
1 parent 8c3e1f8 commit 468a09c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

scipy/_lib/_array_api.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,7 @@ def array_namespace(*arrays: Array) -> ModuleType:
126126

127127
_arrays = compliance_scipy(_arrays)
128128

129-
# data-apis/array-api-compat#168
130-
try: # return the wrapped namespace for NumPy arrays
131-
return array_api_compat.array_namespace(*_arrays, use_compat=True)
132-
except ValueError: # if the library is not wrapped, like array-api-strict
133-
return array_api_compat.array_namespace(*_arrays, use_compat=None)
129+
return array_api_compat.array_namespace(*_arrays)
134130

135131

136132
def _asarray(

0 commit comments

Comments
 (0)