astropy:docs

enable

astropy.units.imperial.enable()[source] [edit on github]

Enable Imperial units so they appear in results of Unit.find_equivalent_units and Unit.compose.

This may be used with the with statement to enable Imperial units only temporarily.

Page Contents