obspy.core.inventory.util.Person

class Person(names=None, agencies=None, emails=None, phones=None)[source]

Bases: ComparingObject

From the StationXML definition:

Representation of a person’s contact information. A person can belong to multiple agencies and have multiple email addresses and phone numbers.

Attributes

agencies

email_pattern

emails

names

phones

Special Methods

Person.__delattr__(name, /)

Implement delattr(self, name).

Person.__dir__()

Default dir() implementation.

Person.__eq__(other)
Person.__format__(format_spec, /)

Default object formatter.

Person.__ge__(value, /)

Return self>=value.

Person.__getattribute__(name, /)

Return getattr(self, name).

Person.__gt__(value, /)

Return self>value.

Person.__init__(names=None, agencies=None, emails=None, phones=None)[source]
Parameters:
  • names (list[str], optional) – Self-explanatory. Multiple names allowed.

  • agencies (list[str], optional) – Self-explanatory. Multiple agencies allowed.

  • emails (list[str], optional) – Self-explanatory. Multiple emails allowed.

  • phones (list[PhoneNumber], optional) – Self-explanatory. Multiple phone numbers allowed.

Person.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

Person.__le__(value, /)

Return self<=value.

Person.__lt__(value, /)

Return self<value.

Person.__ne__(other)
Person.__new__(**kwargs)
Person.__reduce__()

Helper for pickle.

Person.__reduce_ex__(protocol, /)

Helper for pickle.

Person.__repr__()

Return repr(self).

Person.__setattr__(name, value, /)

Implement setattr(self, name, value).

Person.__sizeof__()

Size of object in memory, in bytes.

Person.__str__()

Return str(self).

Person.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).