ess.powder.correction.normalize_by_proton_charge#

ess.powder.correction.normalize_by_proton_charge(data, proton_charge)[source]#

Normalize data by an accumulated proton charge.

Parameters:
  • data (DataWithScatteringCoordinates[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int), ess.powder.types.EmptyCanRun (int))]) – Un-normalized data array as events or a histogram.

  • proton_charge (AccumulatedProtonCharge[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int), ess.powder.types.EmptyCanRun (int))]) – Accumulated proton charge over the entire run.

Returns:

NormalizedRunData[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int), ess.powder.types.EmptyCanRun (int))]data / proton_charge