ess.bifrost.io.nexus.get_calibrated_analyzer#

ess.bifrost.io.nexus.get_calibrated_analyzer(analyzer_component, analyzer_transform, analyzer_position)[source]#

Collect the data for a single analyzer.

This provider works together with load_analyzer_for_detector() and the generic NeXus workflow from ESSreduce. load_analyzer_for_detector loads a raw analyzer component. Then the default providers from ESSreduce extract a transform and position like for any other component. Finally, this provider combines the data into a single Analyzer object.

Parameters:
  • analyzer_component (NeXusComponent[NXcrystal, TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]) – Data group of loaded analyzers.

  • analyzer_transform (NeXusTransformation[NXcrystal, TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]) – Transformation matrix of the analyzer.

  • analyzer_position (DynamicPosition[NXcrystal, TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))]) – The computed position vector of the analyzer.

Returns:

Analyzer[TypeVar(RunType, ess.reduce.nexus.types.SampleRun (int), ess.reduce.nexus.types.VanadiumRun (int))] – A given analyzer. Only a subset of fields is returned.