ess.bifrost.cutting.group_by_rotation#

ess.bifrost.cutting.group_by_rotation(data, angles)[source]#

Group data by rotation angles.

Parameters:
  • data (DetectorData[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]) – Detector events with time coordinates.

  • angles (InstrumentAngles[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]) – Data group with time-dependent entries “a3” and “a4”.

Returns:

DataGroupedByRotation[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]data grouped by rotation angles “a3” and “a4”.