scippneutron.conversion.beamline.total_straight_beam_length_no_scatter#

scippneutron.conversion.beamline.total_straight_beam_length_no_scatter(*, source_position, position)#

Compute the length of the beam from source to given position.

Assumes a straight beam. The result is

\[L_\mathsf{total} = | \mathtt{position} - \mathtt{{source\_position}} |\]
Parameters:
Returns:

Union[Variable, DataArray, Dataset, DataGroup]\(L_\mathsf{total}\)