MulensModel.b0b1utils module¶
- class MulensModel.b0b1utils.B0B1Utils¶
Bases:
object
Data and methods used for interpolation for finite-source point-lens magnification calculations.
There are no parameters of __init__(). In general, this class is not directly used by a user.
- interpolate_B0(z)¶
Interpolate B_0(z) function.
- Parameters :
- z: np.ndarray
Values of u/rho.
- Returns :
- B0: np.ndarray
Values of B_0.
- interpolate_B0minusB1(z)¶
Interpolate B_0(z)-B_1(z) function.
- Parameters :
- z: np.ndarray
Values of u/rho.
- Returns :
- B0_minus_B1: np.ndarray
Values of B_0(z)-B_1(z).
- interpolate_B1(z)¶
Interpolate B_1(z) function.
- Parameters :
- z: np.ndarray
Values of u/rho.
- Returns :
- B1: np.ndarray
Values of B_1(z).
- interpolate_B0prime(z)¶
Interpolate derivative of B_0(z), i.e., d B_0(z)/d z.
- Parameters :
- z: np.ndarray
Values of u/rho.
- Returns :
- dB0_dz: np.ndarray
Values of d B_0(z)/d z.
- interpolate_B1prime(z)¶
Interpolate derivative of B_1(z), i.e., d B_1(z)/d z.
- Parameters :
- z: np.ndarray
Values of u/rho.
- Returns :
- dB1_dz: np.ndarray
Values of d B_1(z)/d z.
- get_interpolation_mask(z)¶
Get mask of z values for which interpolation of B_0(z), B_1(z) etc. is allowed
- Parameters :
- z: np.ndarray
Values of u/rho.
- Returns :
- mask: np.ndarray
Mask indicating for which z values interpolation is allowed.
- property z_max_interpolation¶
Maximum value of z for which interpolation is allowed.
float