pyLIMA.microltoolbox¶
Created on Mon May 23 17:18:15 2016
@author: ebachelet
Module Contents¶
Functions¶
chichi(residuals_fn, fit_process_parameters) |
Return the chi^2 . |
magnitude_to_flux(magnitude) |
Transform the injected magnitude to the the corresponding flux. |
flux_to_magnitude(flux) |
Transform the injected flux to the the corresponding magnitude. |
error_magnitude_to_error_flux(error_magnitude, flux) |
Transform the injected magnitude error to the the corresponding error in flux. |
error_flux_to_error_magnitude(error_flux, flux) |
Transform the injected flux error to the the corresponding error in magnitude. |
MCMC_compute_fs_g(fit, mcmc_chains) |
Compute the corresponding source flux fs and blending factor g corresponding to each mcmc |
align_the_data_to_the_reference_telescope(fit, telescope_index=0, parameters=None) |
Align data to the telescope_index. Used to plot fit results. Ugly microlensing alignement…. |
-
pyLIMA.microltoolbox.chichi(residuals_fn, fit_process_parameters)[source]¶ Return the chi^2 .
Parameters: - residuals_fn (func) – a function which compute the residuals
- fit_process_parameters (list) – the model parameters ingested by the correpsonding fitting routine.
Returns: the chi^2
Return type:
-
pyLIMA.microltoolbox.magnitude_to_flux(magnitude)[source]¶ Transform the injected magnitude to the the corresponding flux.
Parameters: magnitude (array_like) – the magnitude you want to transform. Returns: the transformed magnitude in flux unit Return type: array_like
-
pyLIMA.microltoolbox.flux_to_magnitude(flux)[source]¶ Transform the injected flux to the the corresponding magnitude.
Parameters: flux (array_like) – the flux you want to transform. Returns: the transformed magnitude Return type: array_like
-
pyLIMA.microltoolbox.error_magnitude_to_error_flux(error_magnitude, flux)[source]¶ Transform the injected magnitude error to the the corresponding error in flux.
Parameters: - error_magnitude (array_like) – the magnitude errors measurements you want to transform.
- flux (array_like) – the fluxes corresponding to these errors
Returns: the transformed errors in flux units
Return type: array_like
-
pyLIMA.microltoolbox.error_flux_to_error_magnitude(error_flux, flux)[source]¶ Transform the injected flux error to the the corresponding error in magnitude.
Parameters: - error_flux (array_like) – the flux errors measurements you want to transform.
- flux (array_like) – the fluxes corresponding to these errors
Returns: the transformed errors in magnitude
Return type: array_like
-
pyLIMA.microltoolbox.MCMC_compute_fs_g(fit, mcmc_chains)[source]¶ Compute the corresponding source flux fs and blending factor g corresponding to each mcmc chain.
Parameters: - fit – a fit object. See the microlfits for more details.
- mcmc_chains – a numpy array representing the mcmc chains.
Returns: a numpy array containing the corresponding fluxes parameters
Return type: array_type