This module is a small tool to allow user to control instrumental parameters
Bases: object
An object class that defines the aperture variables
Set the sample aperture distance
Set the sample aperture size
Set the source aperture size
Bases: object
An object class that defines the detector variables
Set the detector distance
Set the detector pix_size
Set the detector size
Bases: object
An object that defines the wavelength variables
To get the wavelength band
get default spectrum
To get the value of intensity
To get the neutron mass
To get the value of wave length
To get the wavelength spectrum
To get the value of wavelength
To get the value of wavelength spread
To plot the wavelength spactrum : requirment: matplotlib.pyplot
To set the wavelength band
Parameters: | band – array of [min, max] |
---|
set band to default value
Sets the intensity in counts/sec
Sets the wavelength
Set spectrum
Parameters: | spectrum – numpy array |
---|
Sets the wavelength
Sets the wavelength spread
To set the wavelength spectrum, and intensity, assumes wavelength is already within the spectrum
Bases: object
An object class that defines the sample variables
Set the sample distance
Set the sample size
Set the sample thickness
Bases: sans.calculator.instrument.Neutron
TOF: make list of wavelength and wave length spreads
To get the wavelength band
get default spectrum
To get the value of intensity
get list of the intensity wrt wavelength_list
To get the neutron mass
To get the value of wave length
To get the wavelength spectrum
Get wavelength and wavelength_spread list
To get the value of wavelength
To get the value of wavelength spread
To plot the wavelength spactrum : requirment: matplotlib.pyplot
To set the wavelength band
Parameters: | band – array of [min, max] |
---|
set band to default value
Sets the intensity in counts/sec
Sets the wavelength
Set spectrum
Parameters: | spectrum – numpy array |
---|
Set wavelength list
Parameters: | wavelength – list of wavelengths |
---|
Set wavelength_spread list
Parameters: | wavelength_spread – list of wavelength spreads |
---|
Sets the wavelength
Sets the wavelength spread
To set the wavelength spectrum, and intensity, assumes wavelength is already within the spectrum
Check if the value is folat > 0.0
Return value: | True / False |
---|