def METHOD_NAME(self) -> None:
    # result (ratio) can be NaN if no features matching filter1
    if self.result.value == "NaN":
        self.result.value = None
    if self.result.value is None:
        return
    description = Template(self.metadata.result_description).substitute(
        result=round(self.result.value, 1),
        all=round(self.absolute_value_1, 1),
        matched=round(self.absolute_value_2, 1),
    )
    if self.absolute_value_1 == 0:
        self.result.description = description + "No features in this region"
        return
    if self.result.value >= self.threshold_yellow:
        self.result.class_ = 5
        self.result.description = (
            description + self.metadata.label_description["green"]
        )
    elif self.threshold_yellow > self.result.value >= self.threshold_red:
        self.result.class_ = 3
        self.result.description = (
            description + self.metadata.label_description["yellow"]
        )
    else:
        self.result.class_ = 1
        self.result.description = (
            description + self.metadata.label_description["red"]
        )