minpack.py 664 B

123456789101112131415161718192021222324252627
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.optimize` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'OptimizeResult',
  7. 'OptimizeWarning',
  8. 'curve_fit',
  9. 'fixed_point',
  10. 'fsolve',
  11. 'least_squares',
  12. 'leastsq',
  13. 'zeros',
  14. ]
  15. def __dir__():
  16. return __all__
  17. def __getattr__(name):
  18. return _sub_module_deprecation(sub_package="optimize", module="minpack",
  19. private_modules=["_minpack_py"], all=__all__,
  20. attribute=name)