m3resp.coerce_events#

m3resp.coerce_events(values, *, name=None, modality=None, label=None)[source]#

Convert an iterable of events into a list of Event objects.

Parameters:
  • values (Iterable[Any]) – Events in any form accepted by coerce_event().

  • name (str | None) – Event name passed to coerce_event for each item.

  • modality (str | None) – Device or technique passed to coerce_event for each item.

  • label (str | None) – Note passed to coerce_event for each item.

Returns:

Events in input order. Each item is converted by

coerce_event, with the same field handling and errors.

Return type:

list[Event]