neutronpy.instrument module

Instrument(*args, **kwargs) An object that represents either a Triple Axis Spectrometer instrument or a Time of Flight Instrument configuration, including a sample.
TripleAxisInstrument([efixed, sample, hcol, …]) An object that represents a Triple Axis Spectrometer (TAS) instrument experimental configuration, including a sample.
TimeOfFlightInstrument([ei, choppers, …]) An object representing a Time of Flight (TOF) instrument experimental configuration, including a sample.
GeneralInstrument Class containing methods general to both Triple Axis and Time of Flight instruments.
PlotInstrument Class containing resolution plotting methods
Monochromator(tau, mosaic[, direct, …]) Class containing monochromator information.
Analyzer(tau, mosaic[, direct, vmosaic, …]) Class containing analyzer information.
Chopper(distance, speed, width, …[, …]) Class defining a chopper object for using Time of Flight spectrometer resolution calculations.
Guide(m, length, width, height) Class for defining a neutron guide object for use with Time of Flight spectrometer resolution calculations.
Detector(shape, width, height, radius, …) Class defining a neutron detector for Time of Flight spectrometer resolution calculations.
Goniometer(u, theta_u, v, theta_v, sgu, sgl) Class for defining a goniometer.
GetTau(x[, getlabel]) τ-values for common monochromator and analyzer crystals.
get_angle_ki_Q(ki, kf, Q[, gonio_dir, …]) Returns the angle between ki and Q for rotation from [ki, ki_perp, kz, w] to [q_perp, q_para, qz, w] reference frame.
get_kfree(W, kfixed[, ki_fixed]) Calculates the free wavevector, either ki or kf, as specified by ki_fixed.
chop(matrix[, tol]) Rounds values within tol of zero down(up) to zero
get_bragg_widths(RM) Returns the Bragg widths given a resolution matrix.