# set_enabled_constants¶

astropy.constants.set_enabled_constants(modname)[source]

Deprecated since version 4.0: The set_enabled_constants function is deprecated and may be removed in a future version. Use Use ‘astropy.physical_constants’ and ‘astropy.astronomical_constants’ instead.

Context manager to temporarily set values in the constants namespace to an older version. See Collections of Constants (and Prior Versions) for usage.

Parameters
modname{‘astropyconst13’, ‘astropyconst20’}

Name of the module containing an older version.