uvex_transients.utils.summary_report.SummaryReport.from_release#

classmethod SummaryReport.from_release(populations: Mapping[str, PopulationSpec], tag: str | None = None, **kwargs) → SummaryReport[source]#

Build a report from the event summary table of a published release.

The table is downloaded into the package cache with ~uvex_transients.utils.results.get_results, so only the first call pays for the download.

Parameters:
  • populations (Mapping of str to PopulationSpec) – As for the constructor.

  • tag (str, optional) – The release tag. The default is the newest release.

  • **kwargs – Forwarded to the constructor.

Returns:

The report on the release’s summary table.

Return type:

SummaryReport

Raises:
  • ConnectionError – If the GitHub releases API cannot be reached.

  • LookupError – If there is no such release, it has no event summary table (releases cut before the table was introduced do not), or the table has none of the requested populations.

  • ValueError – If the table lacks something SummaryReport needs, as an older release’s might.