spatula.util¶
Overview
Get the number of threads used when computing PGOP. |
|
|
Set the number of threads to use when computing PGOP. |
|
Convert spherical to Cartesian coordinates on the unit sphere. |
Details
General utility functions for the package and users.
- spatula.util.get_num_threads()[source]¶
Get the number of threads used when computing PGOP.
- Returns:
num_threads – The number of threads.
- Return type:
- spatula.util.set_num_threads(num_threads)[source]¶
Set the number of threads to use when computing PGOP.
- Parameters:
num_threads (int) – The number of threads.
- spatula.util.sph_to_cart(theta, phi)[source]¶
Convert spherical to Cartesian coordinates on the unit sphere.
- Parameters:
theta ( numpy.ndarray of float) – The longitudinal (polar) angle from .
phi ( numpy.ndarray of float) – The latitudinal (azimuthal) angle from .
- Returns:
coords – The Cartesian coordinates of the points.
- Return type:
numpy.ndarray of float