scippneutron.tof.fakes.FakeBeamline#

class scippneutron.tof.fakes.FakeBeamline(source, pulse, choppers, monitors, detectors, time_of_flight_origin=None)[source]#
__init__(source, pulse, choppers, monitors, detectors, time_of_flight_origin=None)[source]#

Return a fake beamline.

Parameters:
  • source (FakeSource) – Fake source.

  • pulse (FakePulse) – Fake pulse.

  • choppers (dict[str, Chopper]) – Choppers.

  • monitors (dict[str, Variable]) – Distances of monitors.

  • detectors (dict[str, Variable]) – Distances of detectors.

  • time_of_flight_origin (Optional[str], default: None) – Name of the chopper to use as time-of-flight origin. If None, use the source pulse. The center time of the slit opening of the chopper (or the source pulse) is used as time-of-flight origin.

Methods

__init__(source, pulse, choppers, monitors, ...)

Return a fake beamline.

get_monitor(name)