ess.powder.grouping.group_two_theta#
- ess.powder.grouping.group_two_theta(data, two_theta_bins)[source]#
Group the data by two-theta bins.
datawas focussed onto a finer two-theta grid that is aligned withtwo_theta_bins, seefocus_data_dspacing_and_two_theta(). Grouping is therefore an exact sum over whole sub-bins. This requires that both steps were given the same bins; otherwise, an exception is raised.- Return type:
FocussedDataDspacingTwoTheta[TypeVar(RunType,ess.reduce.nexus.types.SampleRun(int),ess.powder.types.VanadiumRun(int),ess.powder.types.EmptyCanRun(int))]