obspy.core.inventory.inventory.Inventory.__eq__

Inventory.__eq__(other)[source]

__eq__ method of the Inventory object.

Parameters:other (Inventory) Inventory object for comparison.
Return type:bool
Returns:True if both Inventories are equal.

Example

>>> from obspy.core.inventory import read_inventory
>>> inv = read_inventory()
>>> inv2 = inv.copy()
>>> inv is inv2
False
>>> inv == inv2
True