scippneutron.sample_position#

scippneutron.sample_position(da)[source]#

Extract the position of the sample from a data array or dataset.

Parameters:

da (DataArray | Dataset) – Get or compute the sample position from coords and attrs of this.

Returns:

Variable – The sample position.