mcstasscript.tests.test_instrument_diagnostics#
Functions
|
Creates a dummy McStasDataEvent object with random event data |
Sets up a neutron instrument without a package_path |
|
Sets up a populated instrument using the dummy McStas installation, so that Monitor_nD is available as a component type |
|
Sets up a populated instrument with two extra variables usable as flags |
|
Sets up a neutron instrument with parameters, declare vars and three components |
Classes
|
Tests for the BeamDiagnostics class which sets up event monitors at selected points along the beam path |
|
Tests for the common_range_limits helper function which computes matching log-scale axis limits for intensity and ray count plots |
|
Tests for the DiagnosticsInstrument base class which manages a deep-copied instrument for diagnostics modifications |
|
Tests for the DiagnosticsPoint class which represents a beam diagnostics measurement point before or after a component |
|
Tests for the EventPlotter class which wraps event data and produces plots from View specifications |
|
Tests for the IntensityDiagnostics class which places 0D or 1D intensity monitors before each component |
|
Tests for the PlotOverview class which coordinates plotting of multiple views across multiple event plotters |
|
Tests for the sanitise_comp_name helper function |
|
Tests for the View class which defines plot axis specifications |