def preference_values_from_user(self, user_id):
        user_id_loc = np.where(self._user_ids == user_id)
        if not user_id_loc[0].size:
            #user_id not found
            raise UserNotFoundError

        preferences = self.index[user_id_loc]

        return preferences
Call the provided function to return the Gauge value.
dataset/ETHPy150Open muricoca/crab/scikits/crab/models/classes.py/MatrixPreferenceDataModel.preference_values_from_user--crossover with--dataset/ETHPy150Open prometheus/client_python/prometheus_client/core.py/Gauge.set_function