def METHOD_NAME(self, diameter_size):
    """
    Args:
        diameter_size (int): selected diameter index
    """
    if diameter_size in self._diameter_size_list:
        self.set_diameter_index(self._diameter_size_list.index(diameter_size))
    else:
        logging.getLogger("HWR").warning(
            "Aperture: Selected diameter is not in the diameter list"
        )