constants.py 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.constants` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'Avogadro', 'Boltzmann', 'Btu', 'Btu_IT', 'Btu_th', 'G',
  7. 'Julian_year', 'N_A', 'Planck', 'R', 'Rydberg',
  8. 'Stefan_Boltzmann', 'Wien', 'acre', 'alpha',
  9. 'angstrom', 'arcmin', 'arcminute', 'arcsec',
  10. 'arcsecond', 'astronomical_unit', 'atm',
  11. 'atmosphere', 'atomic_mass', 'atto', 'au', 'bar',
  12. 'barrel', 'bbl', 'blob', 'c', 'calorie',
  13. 'calorie_IT', 'calorie_th', 'carat', 'centi',
  14. 'convert_temperature', 'day', 'deci', 'degree',
  15. 'degree_Fahrenheit', 'deka', 'dyn', 'dyne', 'e',
  16. 'eV', 'electron_mass', 'electron_volt',
  17. 'elementary_charge', 'epsilon_0', 'erg',
  18. 'exa', 'exbi', 'femto', 'fermi', 'fine_structure',
  19. 'fluid_ounce', 'fluid_ounce_US', 'fluid_ounce_imp',
  20. 'foot', 'g', 'gallon', 'gallon_US', 'gallon_imp',
  21. 'gas_constant', 'gibi', 'giga', 'golden', 'golden_ratio',
  22. 'grain', 'gram', 'gravitational_constant', 'h', 'hbar',
  23. 'hectare', 'hecto', 'horsepower', 'hour', 'hp',
  24. 'inch', 'k', 'kgf', 'kibi', 'kilo', 'kilogram_force',
  25. 'kmh', 'knot', 'lambda2nu', 'lb', 'lbf',
  26. 'light_year', 'liter', 'litre', 'long_ton', 'm_e',
  27. 'm_n', 'm_p', 'm_u', 'mach', 'mebi', 'mega',
  28. 'metric_ton', 'micro', 'micron', 'mil', 'mile',
  29. 'milli', 'minute', 'mmHg', 'mph', 'mu_0', 'nano',
  30. 'nautical_mile', 'neutron_mass', 'nu2lambda',
  31. 'ounce', 'oz', 'parsec', 'pebi', 'peta',
  32. 'pi', 'pico', 'point', 'pound', 'pound_force',
  33. 'proton_mass', 'psi', 'pt', 'short_ton',
  34. 'sigma', 'slinch', 'slug', 'speed_of_light',
  35. 'speed_of_sound', 'stone', 'survey_foot',
  36. 'survey_mile', 'tebi', 'tera', 'ton_TNT',
  37. 'torr', 'troy_ounce', 'troy_pound', 'u',
  38. 'week', 'yard', 'year', 'yobi', 'yocto',
  39. 'yotta', 'zebi', 'zepto', 'zero_Celsius', 'zetta'
  40. ]
  41. def __dir__():
  42. return __all__
  43. def __getattr__(name):
  44. return _sub_module_deprecation(sub_package="constants", module="constants",
  45. private_modules=["_constants"], all=__all__,
  46. attribute=name)