MulensModel.utils module¶
-
class
MulensModel.utils.Utils¶ Bases:
objectA number of small functions used in different places
-
static
get_flux_from_mag(mag, zeropoint=22.0)¶ transform magnitudes into fluxes
-
static
get_flux_and_err_from_mag(mag, err_mag, zeropoint=22.0)¶ transform magnitudes into fluxes including errorbars
-
static
get_mag_from_flux(flux, zeropoint=22.0)¶ transform fluxes into magnitudes
-
static
get_mag_and_err_from_flux(flux, err_flux, zeropoint=22.0)¶ transform fluxes into magnitudes including errorbars
-
static
complex_fsum(arguments)¶ accurate floating points sum of complex numbers in iterable arguments
-
static
dot(cartesian, vector)¶ dot product of Astropy CartersianRepresentation and np.ndarray
-
static
vector_product_normalized(vector_1, vector_2)¶ get vector that is perpendicular to the 2 above and is normalized
-
static
gamma_to_u(gamma)¶ transform gamma limb darkening coefficient to u
-
static
u_to_gamma(u)¶ transform u limb darkening coefficient to gamma
-
static
date_change(text)¶ changes format: ‘2015-Oct-30 12:00’ -> ‘2015-10-30 12:00’
-
astropy_version_check()¶ check if astropy is installed at given or later version (input as a string)
-
static