argopy.ArgoIndex.copy

Contents

argopy.ArgoIndex.copy#

ArgoIndex.copy(deep: bool = True) Self#

Returns a copy of this ArgoIndex instance

A copy is a new instance based on similar parameters (e.g. host and index_file).

A deep copy ensure complete independence between the original and the copied index. If the index was loaded, a new view is returned with the copied index, but search parameters and results are lost.

A shallow copy preserves the index array, search parameters and results.

Parameters:

deep (bool, optional, default=True) – Whether the search parameters and results are copied onto the new ArgoIndex instance.

Return type:

ArgoIndex