create_events#

hvpy.create_events(events)[source]#

Creates a string of events separated by commas.

Parameters:

events (List[Union[EventType, str, tuple]]) – Either a list of tuple of the form (event_type, recognition_methods), or a list of str or ~hvpy.EventType, e.g., ["AR", EventType.CORONAL_CAVITY] If recognition_methods is missing, it will use “ALL”.

Return type:

str

Examples

>>> from hvpy import create_events
>>> create_events(["AR", ("ER", "SPoCA;NOAA_SWPC_Observer")])
'[AR,all,1],[ER,SPoCA;NOAA_SWPC_Observer,1]'