docs: def get_unit(unit_id, **kwargs):
      """
          Returns a single unit
      """
      try:
          unit = db.DBSession.query(Unit).filter(Unit.id==unit_id).one()
          return JSONObject(unit)
      except NoResultFound:
          # The dimension does not exist
          raise ResourceNotFoundError("Unit %s not found"%(unit_id))