eomatch.finder.base.BaseMUFinder

eomatch.finder.base.BaseMUFinder#

class eomatch.finder.base.BaseMUFinder(*args: Any, **kwargs: Any)[source]#

Abstract base class for collocated product identification routines.

Subclasses implement finder() to produce a list of MatchupEvent objects. Common helpers (run_scrappi(), all_products_overlap()) are provided here.

__init__(context: dict | str | None = None) None[source]#

Initialise the finder.

Parameters:

contextEOMatchContext (or a dict/path accepted by the parent BaseProcessor) supplying runtime configuration. Defaults to EOMatchContext().

Methods

__init__([context])

Initialise the finder.

all_products_overlap(products)

Return True if every pair of products in products has a non-empty geometric intersection.

filter_overlapping_products(productitem, ...)

Return the subset of productitemset whose geometry overlaps productitem.

finder()

Run the matchup discovery pipeline and return the results.

run_scrappi(query[, context])

Execute a single scrappi query and return the matching products.