sas.sascalc.calculator.ausaxs package¶
Subpackages¶
Submodules¶
sas.sascalc.calculator.ausaxs.architecture module¶
- class sas.sascalc.calculator.ausaxs.architecture.OS(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
Bases:
Enum
- LINUX = 1¶
- MAC = 2¶
- UNKNOWN = 3¶
- WIN = 0¶
- __doc__ = None¶
- __module__ = 'sas.sascalc.calculator.ausaxs.architecture'¶
- sas.sascalc.calculator.ausaxs.architecture.get_os()¶
Get the operating system of the current machine.
Get the shared library extension for the current operating system, including the dot. If the operating system is unknown, return an empty string.
sas.sascalc.calculator.ausaxs.ausaxs_sans_debye module¶
- sas.sascalc.calculator.ausaxs.ausaxs_sans_debye._attach_hooks()¶
- sas.sascalc.calculator.ausaxs.ausaxs_sans_debye._invoke(q, coords, w)¶
Invoke the AUSAXS library to compute I(q) for a set of points.
- sas.sascalc.calculator.ausaxs.ausaxs_sans_debye._invoke_independent(q, coords, w, queue)¶
Import and invoke the AUSAXS library to compute I(q) for a set of points. This will redo the import every time it is called, and is only intended for use in a subprocess.
- sas.sascalc.calculator.ausaxs.ausaxs_sans_debye._prepare_invocation(q, coords, w)¶
- sas.sascalc.calculator.ausaxs.ausaxs_sans_debye.ausaxs_available()¶
Check if the AUSAXS library is available.
- sas.sascalc.calculator.ausaxs.ausaxs_sans_debye.evaluate_sans_debye(q, coords, w)¶
Compute I(q) for a set of points using Debye sums. This uses AUSAXS if available, otherwise it uses the default implementation. q is the q values for the calculation. coords are the sample points. w is the weight associated with each point.
sas.sascalc.calculator.ausaxs.sasview_sans_debye module¶
- sas.sascalc.calculator.ausaxs.sasview_sans_debye._calc_Iq_batch(Iq, q_pi, coords, weight)¶
Helper function for _calc_Iq which operates on a batch of q values. Iq is accumulated within each batch, and should be initialized to zero. q_pi is q/pi, needed because np.sinc computes sin(pi x)/(pi x). coords are the sample points. weight is the weight associated with each point.
- sas.sascalc.calculator.ausaxs.sasview_sans_debye.sasview_sans_debye(q, coords, weight, worksize=100000)¶
Compute I(q) for a set of points using the full Debye formula. q is the q values for the calculation. coords are the sample points. weight is the weight associated with each point. worksize is the number of q values to compute at once.