obspy.core.event.Catalog.__iter__

Catalog.__iter__()

Return a robust iterator for Events of current Catalog.

Doing this it is safe to remove events from catalogs inside of for-loops using catalog’s remove() method. Actually this creates a new iterator every time a event is removed inside the for-loop.