simpeg.electromagnetics.static.spectral_induced_polarization.survey.Survey.get_slice#

Survey.get_slice(source, receiver)[source]#

Get slice to index a flat array for a given source-receiver pair.

Use this method to index a data or uncertainty array for a source-receiver pair of this survey.

Parameters:
sourceBaseSrc

Source object.

receiverBaseRx

Receiver object.

Returns:
slice
Raises:
KeyError

If the given source or receiver do not belong to this survey.

See also

get_all_slices