uvex_transients.utils.summary_report.SummaryReport.plot_example_event#

SummaryReport.plot_example_event(key: str, events: EventCatalog, transients: Mapping[str, TransientBase], schedule: SurveySchedule, mission: Mission, seed: int = 1, faint_limit: float = 26.0) → Figure[source]#

Plot the synthetic light curve of one randomly chosen selected event of a population.

The event is rebuilt from events (see ~uvex_transients.simulation.event_catalog.EventCatalog.get_events) and its photometry simulated against every observation schedule made of it. Filled squares are detections, open triangles upper limits, and the lines are the noiseless model.

Parameters:
  • key (str) – The population, a key of populations.

  • events (EventCatalog) – The event catalog the summary was built from, as a release publishes it. It must hold the event.

  • transients (Mapping of str to TransientBase) – The transient instances, keyed as the transient_type column is.

  • schedule (SurveySchedule) – The survey schedule, ideally the one the release was run against.

  • mission (m4opt.missions.Mission) – The mission to simulate the photometry for.

  • seed (int, optional) – Seed of the draw of the event. The default is 1.

  • faint_limit (float, optional) – The faintest AB magnitude shown. Nothing fainter is plotted, however faint the noiseless model gets, so the axis shows the range UVEX can actually measure. The brightest end is set by the data. The default is 26.

Returns:

The light curve.

Return type:

matplotlib.figure.Figure

Raises:

ValueError – If no event of the population survived the selection.