def METHOD_NAME(self, par_name):
    def get_cmd():
        self._update_monitor()
        try:
            return float(self.press_dict[par_name]) * 1e-3  # mBar -> Bar
        except Exception as e:
            logging.info('Could not extract {} from {}'.format(
                par_name, self.url))
            logging.info(e)
    return get_cmd