astropy:docs

set_current

astropy.cosmology.set_current(*args, **kwargs)[source] [edit on github]

Deprecated since version 0.4: The set_current function is deprecated and may be removed in a future version. Use astropy.cosmology.default_cosmology.set instead.

Set the current cosmology.

Call this with an empty string (‘’) to get a list of the strings that map to available pre-defined cosmologies.
Parameters:

cosmo : str or Cosmology instance

The cosmology to use.

Page Contents