eomatch.enrich.insitu_time_diff.insitu_time_diff

eomatch.enrich.insitu_time_diff.insitu_time_diff#

eomatch.enrich.insitu_time_diff.insitu_time_diff(matchup) → Dict[str, Any][source]#

Return the real-data proximity of this matchup’s in-situ product(s) to the crossover.

Parameters:

matchup – Matchup to enrich.

Returns:

{"insitu_time_diff_before_s": float | None, "insitu_time_diff_after_s": float | None}, plus "insitu_time_diff_nearest_s": float if either side has data, or {} if the matchup has no in-situ product.