scippneutron.tof.chopper_cascade.Chopper#
- class scippneutron.tof.chopper_cascade.Chopper(distance, time_open, time_close)[source]#
- __init__(distance, time_open, time_close)#
Methods
__init__
(distance, time_open, time_close)from_disk_chopper
(disk_chopper, ...)Create a chopper from a NeXus disk chopper.
Attributes
distance
time_open
time_close
- classmethod from_disk_chopper(disk_chopper, pulse_frequency, npulses)[source]#
Create a chopper from a NeXus disk chopper.
- Parameters:
disk_chopper (
DiskChopper
) – Disk chopper.pulse_frequency (
Variable
) – The frequency of pulses in the neutron source (this is to determine how many rotations the chopper performs per pulse).npulses (
int
) – Number of pulses to rotate the chopper for.
- Return type: