scippneutron.conversion.graph#

Graphs for coordinate transformations.

All graphs are defined in terms of the functions in the parent module scippneutron.conversion. See there for definitions of the individual conversions.

Typically, multiple graphs need to be combined for a full transformation. For example:

>>> from scippneutron.conversion import graph
>>> wavelength_graph = {**graph.beamline.beamline(scatter=True),
...                     **graph.tof.elastic_wavelength(start='tof')}

The user guide gives more examples.

Modules

beamline

Graphs for computing beamline parameters from positions.

tof

Graphs for computing coordinates in time-of-flight neutron scattering.