Bug#1067234: symfit: autopkgtest regression with NumPy 1.26
Timo Röhling
roehling at debian.org
Wed Mar 20 16:10:17 GMT 2024
Source: symfit
Version: 0.5.6-2
Severity: serious
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear maintainer,
your package has an autopkgtest regression with NumPy 1.26.
Hopefully relevant excerpt from the test log:
130s # Should no longer raise warnings, because internally we practice
130s # what we preach.
130s fit_custom = BFGS(chi_squared, [a, b])
130s > assert len(recwarn) == 0
130s E assert 1 == 0
130s E + where 1 = len(WarningsRecorder(record=True))
130s
130s tests/test_minimizers.py:120: AssertionError
130s =============================== warnings summary ===============================
130s symfit/core/operators.py:48
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/operators.py:48: SyntaxWarning: invalid escape sequence '\*'
130s """
130s
130s symfit/core/support.py:296
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/support.py:296: SyntaxWarning: invalid escape sequence '\*'
130s """
130s
130s symfit/core/printing.py:13
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/printing.py:13: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
130s import pkg_resources
130s
130s ../../../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:2871
130s /usr/lib/python3/dist-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
130s Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
130s declare_namespace(pkg)
130s
130s symfit/core/fit.py:32
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/fit.py:32: SyntaxWarning: invalid escape sequence '\_'
130s """
130s
130s symfit/core/minimizers.py:211
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/minimizers.py:211: SyntaxWarning: invalid escape sequence '\*'
130s '''
130s
130s symfit/core/minimizers.py:327
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/minimizers.py:327: SyntaxWarning: invalid escape sequence '\*'
130s """
130s
130s symfit/core/minimizers.py:793
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/minimizers.py:793: SyntaxWarning: invalid escape sequence '\*'
130s """
130s
130s symfit/core/fit_results.py:29
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/fit_results.py:29: SyntaxWarning: invalid escape sequence '\*'
130s """
130s
130s symfit/core/objectives.py:389
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/objectives.py:389: SyntaxWarning: invalid escape sequence '\c'
130s """
130s
130s ../../../../../usr/lib/python3/dist-packages/dateutil/tz/tz.py:37
130s /usr/lib/python3/dist-packages/dateutil/tz/tz.py:37: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
130s EPOCH = datetime.datetime.utcfromtimestamp(0)
130s
130s tests/test_auto_fit.py: 3 warnings
130s tests/test_constrained.py: 14 warnings
130s tests/test_finite_difference.py: 1 warning
130s tests/test_fit_result.py: 5 warnings
130s tests/test_general.py: 16 warnings
130s tests/test_minimizers.py: 2 warnings
130s tests/test_objectives.py: 1 warning
130s tests/test_ode.py: 1 warning
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/fit.py:278: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
130s cov_matrix = self._covariance_matrix(best_fit_params,
130s
130s tests/test_auto_fit.py: 2 warnings
130s tests/test_constrained.py: 13 warnings
130s tests/test_finite_difference.py: 2 warnings
130s tests/test_fit_result.py: 1 warning
130s tests/test_general.py: 12 warnings
130s tests/test_global_opt.py: 3 warnings
130s tests/test_ode.py: 7 warnings
130s /tmp/autopkgtest-lxc.jjpx74xp/downtmp/build.gp1/src/symfit/core/fit.py:301: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
130s cov_matrix = self._covariance_matrix(best_fit_params,
130s
130s tests/test_general.py::test_likelihood_fitting_exponential
130s /usr/lib/python3/dist-packages/_pytest/python.py:194: DeprecationWarning: `product` is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use `prod` instead.
130s result = testfunction(**testargs)
130s
130s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
130s =========================== short test summary info ============================
130s FAILED tests/test_minimizers.py::test_custom_objective - assert 1 == 0
130s ======= 1 failed, 137 passed, 3 skipped, 95 warnings in 80.18s (0:01:20) =======
Cheers
Timo
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmX7CmkACgkQ+C8H+466
LVkrGQwAnmpa0hSueYb8mLt5T427AXKnmWz9PR8NcNWo1IToPAjIG6J2GIzjenzg
YIdvVESzg8B3QPRXEk8C2KkbcX38YEWx5IN0+G4cLg5DBxUDxCns6X8AeRcy4VNQ
bIU1ODS+kx1ESBMjgfPaG5fzjRK+U5pCN9reuWI9DILu7pPfnlExMHaE5Z9rJXiH
jPuDC/mIUSQp28mncn/+y2TfTtIKPlQV3x3OU5bxSHikD7jejy837EUWFrvFQOTS
gfz11ExD3WOvVrF8F8uG9P4Bytxh94AzctWItvixKVm6Lwr0+C33dk6Af53LndOo
BaUzjWoZmKdWtdApNu7OKwomV5TlEH4gk7if17u2PjusuaAOIikkz+eYKqCnQiJI
O9RS19h69/sRFjkOtVF85Oetaoqb6YGX1Ofb6BUATkTZAF9iDxja+/m9UNACv4tr
duEF0Xmy77ATf+9Ma0GHDTcUxMMIEWCkwNrS4S29h1Q8wZDhSYM2IKgsQ1PAYpMY
ipIcybLW
=Bgd5
-----END PGP SIGNATURE-----
More information about the debian-science-maintainers
mailing list