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
3 files
+ 7
7
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 3
3
@@ -98,7 +98,7 @@ class AbstractRule(abc.ABC):
):
"""
Applies a spatial filter to ensure that only buildings within the provided geographic
polygon are processed and a source filter to ensure source specific rules only run
polygon are processed and a source filter to ensure source-specific rules only run
for inputs with a matching source ID.
Args:
@@ -107,11 +107,11 @@ class AbstractRule(abc.ABC):
latitude (float):
Latitude of the building being processed.
source_id (int):
Integer representing the data's source ID, and determines the rule's relevance.
Integer representing the data-source ID, and determines the rule's relevance.
Returns:
bool:
True if all tests pass and False if at least one doesn't pass.
`True` if all tests pass and `False` if at least one doesn't pass.
"""
# Geographic filter, passes if the inputs coordinates lie within the boundary geometry.
Loading