obspy.core.event.base.ResourceIdentifier.set_referred_object

ResourceIdentifier.set_referred_object(referred_object)[source]

Sets the object the ResourceIdentifier refers to.

If it already a weak reference it will be used, otherwise one will be created. If the object is None, None will be set.

Will also append self again to the global class level reference list so everything stays consistent.