scippneutron.tof.chopper_cascade.Subframe#
- class scippneutron.tof.chopper_cascade.Subframe(time, wavelength)#
Neutron “subframe” at a time-of-flight neutron source, described as the corners of a polygon (initially a rectangle) in time and wavelength.
- __init__(time, wavelength)#
Methods
__init__
(time, wavelength)Return True if the subframe is regular, i.e., if the vertex with the minimum wavelength also has the minimum time, and the vertex with the maximum wavelength also has the maximum time.
propagate_by
(distance)Propagate subframe by a distance.
Attributes
The end time of the subframe.
The end wavelength of the subframe.
The start time of the subframe.
The start wavelength of the subframe.
- is_regular()#
Return True if the subframe is regular, i.e., if the vertex with the minimum wavelength also has the minimum time, and the vertex with the maximum wavelength also has the maximum time.
- Return type:
- propagate_by(distance)#
Propagate subframe by a distance.
- Parameters:
distance (
Variable
) – Distance to propagate. Note that this is a difference, not an absolute value, in contrast to the distance inFrame.propagate_to()
.- Returns:
Subframe
– Propagated subframe.