ENH: better version of setUnits without logging (per Jonas)