def set_enabled_units(units):
 context = _UnitContext(equivalencies=get_current_unit_registry().equivalencies)
 get_current_unit_registry().set_enabled_units(units)
 return context

def set_enabled_units ( units ) : context = _UnitContext ( equivalencies = get_current_unit_registry ( ) . equivalencies ) get_current_unit_registry ( ) . set_enabled_units ( units ) return context
sets the units enabled in the unit registry .