ess.snspowder.powgen.beamline.map_detector_to_spectrum# ess.snspowder.powgen.beamline.map_detector_to_spectrum(data, *, detector_info)[source]# Transform ‘detector’ coords to ‘spectrum’. Parameters: data (Dataset) – Input data whose ‘detector’ coord is transformed. detector_info (Dataset) – Defines mapping from detector numbers to spectra. Returns: Dataset – data with ‘detector’ coord and dim replaced by ‘spectrum’.