Skip to content
Snippets Groups Projects

Resolve "Introduce a new filter for when rules should be run based on the source ID of a building."

Compare and Show latest version
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -30,7 +30,7 @@ class AbstractRule(abc.ABC):
Args:
rule_source_ids (list):
A list of all valid source IDs for the rule. This is provided by the rule's XML
A list of all valid source IDs for the rule. This is provided by the rule's XML file
if relevant.
geographic_filter_boundary (str):
Boundary polygon in WKT format defining the geographic boundary of the rule.
@@ -112,7 +112,7 @@ class AbstractRule(abc.ABC):
):
return False
# Source ID filter, passes if the rule's and the source ID match.
# Source ID filter, passes if the rule's source ID and the input-source ID match.
if self.rule_source_ids is not None and source_id not in self.rule_source_ids:
return False
return True
Loading