ewoksid02.normalization.get_array_solidangle#
- ewoksid02.normalization.get_array_solidangle(azimuthal_integrator, absolute=True, correct=True, use_cupy=False, persistent=True)[source]#
Generate the solid-angle array associated to an AzimuthalIntegrator.
- params:
azimuthal_integrator (AzimuthalIntegrator): the azimuthal integrator object
absolute (bool): if True, the solid-angle values are absolute, otherwise they are relative
correct (bool): if True, the solid-angle array is used for correction
use_cupy (bool): if True, the returned array is a cupy array, otherwise it is a numpy array
persistent (bool): if True, the solid-angle array is cached for future use, otherwise it is generated on the fly for each call
- returns:
solid_angle_array (numpy.ndarray or cupy.ndarray): the solid-angle array
- Parameters:
azimuthal_integrator (
AzimuthalIntegrator)absolute (
bool)correct (
bool)use_cupy (
bool)persistent (
bool)
- Return type:
ndarray