_public_api.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. """PUBLIC_MODULES was once included in scipy._lib.tests.test_public_api.
  2. It has been separated into this file so that this list of public modules
  3. could be used when generating tables showing support for alternative
  4. array API backends across modules in
  5. scipy/doc/source/array_api_capabilities.py.
  6. """
  7. # Historically SciPy has not used leading underscores for private submodules
  8. # much. This has resulted in lots of things that look like public modules
  9. # (i.e. things that can be imported as `import scipy.somesubmodule.somefile`),
  10. # but were never intended to be public. The PUBLIC_MODULES list contains
  11. # modules that are either public because they were meant to be, or because they
  12. # contain public functions/objects that aren't present in any other namespace
  13. # for whatever reason and therefore should be treated as public.
  14. PUBLIC_MODULES = ["scipy." + s for s in [
  15. "cluster",
  16. "cluster.vq",
  17. "cluster.hierarchy",
  18. "constants",
  19. "datasets",
  20. "differentiate",
  21. "fft",
  22. "fftpack",
  23. "integrate",
  24. "interpolate",
  25. "io",
  26. "io.arff",
  27. "io.matlab",
  28. "io.wavfile",
  29. "linalg",
  30. "linalg.blas",
  31. "linalg.cython_blas",
  32. "linalg.lapack",
  33. "linalg.cython_lapack",
  34. "linalg.interpolative",
  35. "ndimage",
  36. "odr",
  37. "optimize",
  38. "optimize.elementwise",
  39. "signal",
  40. "signal.windows",
  41. "sparse",
  42. "sparse.linalg",
  43. "sparse.csgraph",
  44. "spatial",
  45. "spatial.distance",
  46. "spatial.transform",
  47. "special",
  48. "stats",
  49. "stats.contingency",
  50. "stats.distributions",
  51. "stats.mstats",
  52. "stats.qmc",
  53. "stats.sampling"
  54. ]]