reduce_ensemble

reduce_ensemble#

abtem.waves.reduce_ensemble(ensemble)[source]#

Reduce an ensemble of wave functions or measurements by squeezing or averaging ensemble axes tagged for reduction with the “_squeeze” or “_average” attribute of the axis metadata.

Parameters:

ensemble (Waves, BaseMeasurements, list[Waves | BaseMeasurements]) – The ensemble to reduce.

Returns:

reduced_output – The reduced ensemble.

Return type:

Waves, BaseMeasurements, list[Waves | BaseMeasurements]