obspy.core.inventory.inventory.Inventory.copy

Inventory.copy()[source]

Return a deepcopy of the Inventory object.

Return type:

Inventory

Returns:

Copy of current inventory.

Examples

  1. Create an Inventory and copy it

    >>> from obspy import read_inventory
    >>> inv = read_inventory()
    >>> inv2 = inv.copy()
    

    The two objects are not the same:

    >>> inv is inv2
    False
    

    But they are (currently) equal:

    >>> inv == inv2
    True