pyLIMA.microltoolbox module

Created on Mon May 23 17:18:15 2016

@author: ebachelet

pyLIMA.microltoolbox.align_the_data_to_the_reference_telescope(fit)[source]

Align data to the survey telescope (i.e telescope 0). Used to plot fit results. Ugly microlensing alignement....

Parameters:fit (object) – a microlfits object
Returns:the aligned to survey lightcurve in magnitude
Return type:array_like
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:

float

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.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.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.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