This module is a small tool to allow user to control instrumental parameters
Bases: object
An object class that defines the aperture variables
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
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
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Set the detector distance
Set the detector pix_size
Set the detector size
Bases: object
An object that defines the wavelength variables
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
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
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
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
alias of type
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
Init
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
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 |
---|