jcmgray / quimb

A python library for quantum information and many-body calculations including tensor networks.
http://quimb.readthedocs.io
Other
484 stars 108 forks source link

Fix deprecation warnings #209

Closed king-p3nguin closed 11 months ago

king-p3nguin commented 11 months ago

Fixed following deprecation warnings:

quimb/linalg/approx_spectral.py:11
  /home/runner/work/quimb/quimb/quimb/linalg/approx_spectral.py:11: DeprecationWarning: Please use `uniform_filter1d` from the `scipy.ndimage` namespace, the `scipy.ndimage.filters` namespace is deprecated.
    from scipy.ndimage.filters import uniform_filter1d
quimb/tensor/tensor_builder.py:824
  /home/runner/work/quimb/quimb/quimb/tensor/tensor_builder.py:824: DeprecationWarning: invalid escape sequence '\s'
    """Construct a CP form hyper tensor network of the sum of matrix strings:
jcmgray commented 11 months ago

Thanks! LGTM (test failures are unrelated).