Skip to content

Commit

Permalink
Merge pull request #1752 from mtreinish/fix-numpy-compat
Browse files Browse the repository at this point in the history
Handle change in configuration attributes for numpy 1.22.0
  • Loading branch information
hodgestar committed Jan 5, 2022
2 parents b2a75d3 + d2f396f commit ab09bf2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion qutip/utilities.py
Expand Up @@ -334,7 +334,12 @@ def _version2int(version_string):

def _blas_info():
config = np.__config__
blas_info = config.blas_opt_info
if hasattr(config, 'blas_ilp64_opt_info'):
blas_info = config.blas_ilp64_opt_info
elif hasattr(config, 'blas_opt_info'):
blas_info = config.blas_opt_info
else:
blas_info = {}
_has_lib_key = 'libraries' in blas_info.keys()
blas = None
if hasattr(config,'mkl_info') or \
Expand Down

0 comments on commit ab09bf2

Please sign in to comment.