diff --git a/README.md b/README.md
index 167fa0f5..a9b410b5 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
[**Detailed documentation: https://rpoleski.github.io/MulensModel/**](https://rpoleski.github.io/MulensModel/)
-[Latest release: 2.8.1](https://github.com/rpoleski/MulensModel/releases/latest) and we're working on further developing the code.
+[Latest release: 2.10.0](https://github.com/rpoleski/MulensModel/releases/latest) and we're working on further developing the code.
MulensModel can generate a microlensing light curve for a given set of microlensing parameters, fit that light curve to some data, and return a chi2 value. That chi2 can then be input into an arbitrary likelihood function to find the best-fit parameters.
@@ -56,5 +56,5 @@ If you want to contribute to MulensModel, then please see [this file](CONTRIBUTI
[![Poleski & Yee 2019](https://img.shields.io/badge/ADS-Poleski%20%26%20Yee%202019-brightgreen.svg)](https://ui.adsabs.harvard.edu/abs/2019A%26C....26...35P/abstract)
[![astro-ph/1803.01003](https://img.shields.io/badge/astro--ph-1803.01003-brightgreen.svg)](https://arxiv.org/abs/1803.01003)
-file revised May 2022
+file revised Jul 2022
diff --git a/docs/.buildinfo b/docs/.buildinfo
index bd0edaaf..df91a06a 100644
--- a/docs/.buildinfo
+++ b/docs/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: f17fd91997faabb41c807048f9587a9a
+config: 10611ab27303c73170fa158b00ccea64
tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/docs/.doctrees/environment.pickle b/docs/.doctrees/environment.pickle
index d2d37ff2..1a666b2c 100644
Binary files a/docs/.doctrees/environment.pickle and b/docs/.doctrees/environment.pickle differ
diff --git a/docs/MulensModel.binarylens.html b/docs/MulensModel.binarylens.html
index 2375a3dc..94546468 100644
--- a/docs/MulensModel.binarylens.html
+++ b/docs/MulensModel.binarylens.html
@@ -6,7 +6,7 @@
-
MulensModel.binarylens module — MulensModel 2.8.2 documentation
+ MulensModel.binarylens module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.binarylensimports.html b/docs/MulensModel.binarylensimports.html
index 5a3be1ae..b33c1009 100644
--- a/docs/MulensModel.binarylensimports.html
+++ b/docs/MulensModel.binarylensimports.html
@@ -6,7 +6,7 @@
- MulensModel.binarylensimports module — MulensModel 2.8.2 documentation
+ MulensModel.binarylensimports module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.binarylenswithshear.html b/docs/MulensModel.binarylenswithshear.html
index aad0cd69..03d0c94b 100644
--- a/docs/MulensModel.binarylenswithshear.html
+++ b/docs/MulensModel.binarylenswithshear.html
@@ -6,7 +6,7 @@
- MulensModel.binarylenswithshear module — MulensModel 2.8.2 documentation
+ MulensModel.binarylenswithshear module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.caustics.html b/docs/MulensModel.caustics.html
index f3579ed6..a8634b71 100644
--- a/docs/MulensModel.caustics.html
+++ b/docs/MulensModel.caustics.html
@@ -6,7 +6,7 @@
- MulensModel.caustics module — MulensModel 2.8.2 documentation
+ MulensModel.caustics module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.causticswithshear.html b/docs/MulensModel.causticswithshear.html
index de810620..2ff6b604 100644
--- a/docs/MulensModel.causticswithshear.html
+++ b/docs/MulensModel.causticswithshear.html
@@ -6,7 +6,7 @@
- MulensModel.causticswithshear module — MulensModel 2.8.2 documentation
+ MulensModel.causticswithshear module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.coordinates.html b/docs/MulensModel.coordinates.html
index 8330dc3e..0354ba1e 100644
--- a/docs/MulensModel.coordinates.html
+++ b/docs/MulensModel.coordinates.html
@@ -6,7 +6,7 @@
- MulensModel.coordinates module — MulensModel 2.8.2 documentation
+ MulensModel.coordinates module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.event.html b/docs/MulensModel.event.html
index 4e1bbb0d..658e8137 100644
--- a/docs/MulensModel.event.html
+++ b/docs/MulensModel.event.html
@@ -6,7 +6,7 @@
- MulensModel.event module — MulensModel 2.8.2 documentation
+ MulensModel.event module — MulensModel 2.10.0 documentation
@@ -108,7 +108,7 @@
None (see plot_data()
).
show_bad: bool Whether or not to show data points marked as “bad” (see
-bad
). Default is
+bad
). Default is
None (see plot_data()
).
legend: bool Whether or not to show a legend for the datasets.
@@ -277,11 +277,17 @@
-get_chi2_per_point ( fit_blending = None )
+get_chi2_per_point ( fit_blending = None , bad = False )
Calculates chi^2 for each data point of the current model by
fitting for source and blending fluxes.
Parameters : fit_blending: DEPRECATED. use fix_blending
instead.
+
+bad: bool Should chi2 be also caclulated for points marked as bad in
+MulensData? If False (default), then bad epochs have chi2 of
+np.nan .
+
+
Returns :
chi2: list of np.ndarray Chi^2 contribution from each data point,
diff --git a/docs/MulensModel.fitdata.html b/docs/MulensModel.fitdata.html
index fc2b8ea1..78cfdd74 100644
--- a/docs/MulensModel.fitdata.html
+++ b/docs/MulensModel.fitdata.html
@@ -6,7 +6,7 @@
-
MulensModel.fitdata module — MulensModel 2.8.2 documentation
+ MulensModel.fitdata module — MulensModel 2.10.0 documentation
@@ -77,7 +77,7 @@
update ( bad = False )
Calculate the best-fit source and blend fluxes as well as the chi2.
-Keywords :
+Parameters :
bad: bool Default is False . If True recalculates the data
magnification for each point to ensure that there are values
even for bad datapoints.
@@ -85,6 +85,7 @@
+No returns.
@@ -95,6 +96,8 @@
and (if applicable) source_flux
.
Does not calculate chi2. To fit for the fluxes and calculate chi2,
run update()
.
+No parameters.
+No returns.
@@ -102,7 +105,7 @@
get_data_magnification ( bad = False )
Calculates the model magnification for each data point.
-Arguments :
+Parameters :
bad: boolean If True , calculates the magnification for all points.
If False , only calculates the magnification for good data
points. Values for bad data points are set to 0. Default is
@@ -125,7 +128,7 @@
get_model_fluxes ( bad = False )
Calculate model in flux space.
-Keywords :
+Parameters :
bad: bool Default is False . If True recalculates the data
magnification for each point to ensure that the values
for bad datapoints are calculated (otherwise, they are set to
@@ -146,7 +149,7 @@
get_model_magnitudes ( ** kwargs )
Calculate model in magnitude space
-Arguments :
+Parameters :
**kwargs
:see get_model_fluxes()
@@ -167,7 +170,7 @@
flux += blend_flux_0
err_flux = source_flux_0 * data.err_flux / source_flux
-Arguments :
+Parameters :
source_flux: float , list , np.array Flux of the source in the desired system. If n_sources > 1 and
source_flux has more than one element, the elements are
summed to produce the overall scaling flux.
@@ -192,7 +195,7 @@
get_residuals ( phot_fmt = None , source_flux = None , blend_flux = None , bad = False , type = None )
Calculate the residuals for each datapoint relative to the model.
-Keywords :
+Parameters :
phot_fmt: str , optional specify whether the residuals should be returned in
magnitudes (‘mag’) or in flux (‘flux’). Default is
‘mag’. If ‘scaled’, will return the residuals in magnitudes
@@ -255,8 +258,10 @@
t_E
, pi_E_N
, and pi_E_E
. The parameters for
which you request gradient must be defined in py:attr:~model .
-Returns : gradient: float or np.ndarray
-chi^2 gradient
+
+
+Returns :
+gradient: float or np.ndarray chi^2 gradient
@@ -268,14 +273,33 @@
get_d_A_d_params_for_point_lens_model ( parameters )
Calculate d A / d parameters for a point lens model.
-Arguments:
+Parameters :
parameters: list List of the parameters to take derivatives with respect to.
-Returns: dict Keys are parameter names from parameters argument above. Values
-are the partial derivatives for that parameter evaluated at each
-data point.
+Returns :
+dA_dparam: dict Keys are parameter names from parameters argument above.
+Values are the partial derivatives for that parameter
+evaluated at each data point.
+
+
+
+
+
+
+
+
+get_dataset_trajectory ( )
+Retrieve a Trajectory
object. If
+the dataset
has an ephemerides_file, apply it to the
+Trajectory, even if it is not part of the model
.
+No parameters.
+
+Returns :
+trajectory: Trajectory
Trajectory for given dataset.
+
+
@@ -284,126 +308,101 @@
get_d_A_d_u_for_point_lens_model ( )
Calculate dA/du for PSPL
+No parameters.
+
+Returns :
+dA_du: np.ndarray Derivative dA/du.
+
+
+
+
property chi2_gradient
-Return previously calculated chi^2 gradient (also called Jacobian),
+
float or np.ndarray
+Previously calculated chi^2 gradient (also called Jacobian),
i.e., \(d chi^2/d parameter\) . See get_chi2_gradient()
and calculate_chi2_gradient()
.
-
-Returns :
-gradient: float or np.ndarray chi^2 gradient. Will return None if the chi2 gradient was not
+
Gives None if the chi2 gradient was not
previously calculated using one of the functions mentioned
above.
-
-
-
-
property chi2
-
-Returns :
-chi2: float the total chi2 for the fitted dataset. Good points only. See
-good
.
-
-
-
-
-If None, you need to run update()
to execute the
+
float
+The total chi2 for the fitted dataset. Good points only.
+See good
.
+If None , you need to run update()
to execute the
linear fit and calculate the chi2.
property chi2_per_point
-
-Returns :
-chi2_per_point: np.ndarray Chi^2 contribution from each data point,
-e.g. chi2_per_point[k]
returns the chi2 contribution
+
np.ndarray
+The chi^2 contribution from each data point,
+e.g., chi2_per_point[k]
returns the chi2 contribution
from the k -th point of dataset
. Includes bad
datapoints.
-
-
-
-
-If None, you need to run update()
to execute the
-linear fit and calculate the chi2.
+If None , you need to run update()
to execute
+the linear fit and calculate the chi2.
property source_flux
-
-Returns : source_flux: float
-the fitted source flux. Only defined for models with a single
+
float
+The fitted source flux. Only defined for models with a single
source. See also source_fluxes
-
-
-If None, you need to run fit_fluxes()
or
+
If None , you need to run fit_fluxes()
or
update()
to execute the linear fit.
property source_fluxes
-
-Returns :
-source_fluxes: np.array the fitted source flux(es).
-
-
-
-
-If None, you need to run fit_fluxes()
or
+
np.array
+The fitted source flux(es).
+If None , you need to run fit_fluxes()
or
update()
to execute the linear fit.
property blend_flux
-
-Returns :
-blend_flux: float the fitted blend flux or the value set by
+
float
+The fitted blend flux or the value set by
fix_blend_flux (see Keywords ).
-
-
-
-
-If None, you need to run fit_fluxes()
or
+
If None , you need to run fit_fluxes()
or
update()
to execute the linear fit.
property source_flux_ratio
-source_flux_ratio = source_flux_1 / source_flux_0
-
-Returns :
-source_flux_ratio: float the ratio of the fitted source fluxes or the value set by
+
float
+source_flux_ratio = source_flux_1 / source_flux_0
+i.e., the ratio of the fitted source fluxes or the value set by
fix_source_flux_ratio (see Keywords ).
-
-
-
-
-If None, you need to run fit_fluxes()
or
+
If None , you need to run fit_fluxes()
or
update()
to execute the linear fit.
property dataset
-MulensData
object
+MulensData
A single photometric dataset to be fitted.
property model
-Model
object
+Model
The model to fit to the data.
@@ -412,9 +411,8 @@
property gamma
float
Limb-darkening coefficient for this fit. Set by
-bandpass
and
-get_limb_coeff_gamma()
.
-* CHECK LINKS IN SPHINX. PROBABLY WON’T WORK. *
+bandpass
and
+get_limb_coeff_gamma()
.
diff --git a/docs/MulensModel.horizons.html b/docs/MulensModel.horizons.html
index c7f4783f..89bb0252 100644
--- a/docs/MulensModel.horizons.html
+++ b/docs/MulensModel.horizons.html
@@ -6,7 +6,7 @@
- MulensModel.horizons module — MulensModel 2.8.2 documentation
+ MulensModel.horizons module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.html b/docs/MulensModel.html
index 0bff9ebc..8110b9fd 100644
--- a/docs/MulensModel.html
+++ b/docs/MulensModel.html
@@ -6,7 +6,7 @@
- MulensModel package — MulensModel 2.8.2 documentation
+ MulensModel package — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.limbdarkeningcoeffs.html b/docs/MulensModel.limbdarkeningcoeffs.html
index 78a62480..1ff4d0d1 100644
--- a/docs/MulensModel.limbdarkeningcoeffs.html
+++ b/docs/MulensModel.limbdarkeningcoeffs.html
@@ -6,7 +6,7 @@
- MulensModel.limbdarkeningcoeffs module — MulensModel 2.8.2 documentation
+ MulensModel.limbdarkeningcoeffs module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.magnificationcurve.html b/docs/MulensModel.magnificationcurve.html
index d58ceb99..f4b864ec 100644
--- a/docs/MulensModel.magnificationcurve.html
+++ b/docs/MulensModel.magnificationcurve.html
@@ -6,7 +6,7 @@
- MulensModel.magnificationcurve module — MulensModel 2.8.2 documentation
+ MulensModel.magnificationcurve module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.model.html b/docs/MulensModel.model.html
index ca905a2f..c46fb650 100644
--- a/docs/MulensModel.model.html
+++ b/docs/MulensModel.model.html
@@ -6,7 +6,7 @@
- MulensModel.model module — MulensModel 2.8.2 documentation
+ MulensModel.model module — MulensModel 2.10.0 documentation
@@ -139,6 +139,11 @@
+Returns :
+magnification: numpy.ndarray Magnification values for each epoch.
+
+
+
diff --git a/docs/MulensModel.modelparameters.html b/docs/MulensModel.modelparameters.html
index 4dbbd945..c5117d17 100644
--- a/docs/MulensModel.modelparameters.html
+++ b/docs/MulensModel.modelparameters.html
@@ -6,7 +6,7 @@
- MulensModel.modelparameters module — MulensModel 2.8.2 documentation
+ MulensModel.modelparameters module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.mulensdata.html b/docs/MulensModel.mulensdata.html
index 2a4e9b51..47c36b0b 100644
--- a/docs/MulensModel.mulensdata.html
+++ b/docs/MulensModel.mulensdata.html
@@ -6,7 +6,7 @@
- MulensModel.mulensdata module — MulensModel 2.8.2 documentation
+ MulensModel.mulensdata module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.mulensobjects.html b/docs/MulensModel.mulensobjects.html
index 44fb3846..55288241 100644
--- a/docs/MulensModel.mulensobjects.html
+++ b/docs/MulensModel.mulensobjects.html
@@ -6,7 +6,7 @@
- MulensModel.mulensobjects package — MulensModel 2.8.2 documentation
+ MulensModel.mulensobjects package — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.mulensobjects.lens.html b/docs/MulensModel.mulensobjects.lens.html
index c3e5ab0a..1a8c3ff5 100644
--- a/docs/MulensModel.mulensobjects.lens.html
+++ b/docs/MulensModel.mulensobjects.lens.html
@@ -6,7 +6,7 @@
- MulensModel.mulensobjects.lens module — MulensModel 2.8.2 documentation
+ MulensModel.mulensobjects.lens module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.mulensobjects.mulenssystem.html b/docs/MulensModel.mulensobjects.mulenssystem.html
index aea7a2e7..802bf37c 100644
--- a/docs/MulensModel.mulensobjects.mulenssystem.html
+++ b/docs/MulensModel.mulensobjects.mulenssystem.html
@@ -6,7 +6,7 @@
- MulensModel.mulensobjects.mulenssystem module — MulensModel 2.8.2 documentation
+ MulensModel.mulensobjects.mulenssystem module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.mulensobjects.source.html b/docs/MulensModel.mulensobjects.source.html
index c9ef8258..6c99d9b7 100644
--- a/docs/MulensModel.mulensobjects.source.html
+++ b/docs/MulensModel.mulensobjects.source.html
@@ -6,7 +6,7 @@
- MulensModel.mulensobjects.source module — MulensModel 2.8.2 documentation
+ MulensModel.mulensobjects.source module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.pointlens.html b/docs/MulensModel.pointlens.html
index 19b613de..440e3c91 100644
--- a/docs/MulensModel.pointlens.html
+++ b/docs/MulensModel.pointlens.html
@@ -6,7 +6,7 @@
- MulensModel.pointlens module — MulensModel 2.8.2 documentation
+ MulensModel.pointlens module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.satelliteskycoord.html b/docs/MulensModel.satelliteskycoord.html
index ece2b204..94790531 100644
--- a/docs/MulensModel.satelliteskycoord.html
+++ b/docs/MulensModel.satelliteskycoord.html
@@ -6,7 +6,7 @@
- MulensModel.satelliteskycoord module — MulensModel 2.8.2 documentation
+ MulensModel.satelliteskycoord module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.trajectory.html b/docs/MulensModel.trajectory.html
index a75fe708..cf0c1455 100644
--- a/docs/MulensModel.trajectory.html
+++ b/docs/MulensModel.trajectory.html
@@ -6,7 +6,7 @@
- MulensModel.trajectory module — MulensModel 2.8.2 documentation
+ MulensModel.trajectory module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.uniformcausticsampling.html b/docs/MulensModel.uniformcausticsampling.html
index 87ed798e..c18337e7 100644
--- a/docs/MulensModel.uniformcausticsampling.html
+++ b/docs/MulensModel.uniformcausticsampling.html
@@ -6,7 +6,7 @@
- MulensModel.uniformcausticsampling module — MulensModel 2.8.2 documentation
+ MulensModel.uniformcausticsampling module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.utils.html b/docs/MulensModel.utils.html
index 893f5e37..b2851933 100644
--- a/docs/MulensModel.utils.html
+++ b/docs/MulensModel.utils.html
@@ -6,7 +6,7 @@
- MulensModel.utils module — MulensModel 2.8.2 documentation
+ MulensModel.utils module — MulensModel 2.10.0 documentation
diff --git a/docs/MulensModel.version.html b/docs/MulensModel.version.html
index ec47daed..57c76c3b 100644
--- a/docs/MulensModel.version.html
+++ b/docs/MulensModel.version.html
@@ -6,7 +6,7 @@
- MulensModel.version module — MulensModel 2.8.2 documentation
+ MulensModel.version module — MulensModel 2.10.0 documentation
diff --git a/docs/_static/documentation_options.js b/docs/_static/documentation_options.js
index 2d76b554..d8fb2934 100644
--- a/docs/_static/documentation_options.js
+++ b/docs/_static/documentation_options.js
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
- VERSION: '2.8.2',
+ VERSION: '2.10.0',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
diff --git a/docs/genindex.html b/docs/genindex.html
index b3413a6f..eda81284 100644
--- a/docs/genindex.html
+++ b/docs/genindex.html
@@ -5,7 +5,7 @@
- Index — MulensModel 2.8.2 documentation
+ Index — MulensModel 2.10.0 documentation
@@ -304,6 +304,8 @@ G
(MulensModel.model.Model method)
+ get_dataset_trajectory() (MulensModel.fitdata.FitData method)
+
get_flux_and_err_from_mag() (MulensModel.utils.Utils static method)
get_flux_for_dataset() (MulensModel.event.Event method)
diff --git a/docs/index.html b/docs/index.html
index be47b6f5..9f746885 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -6,7 +6,7 @@
- Welcome to MulensModel’s documentation! — MulensModel 2.8.2 documentation
+ Welcome to MulensModel’s documentation! — MulensModel 2.10.0 documentation
diff --git a/docs/install.html b/docs/install.html
index 733b4e98..edbd2193 100644
--- a/docs/install.html
+++ b/docs/install.html
@@ -6,7 +6,7 @@
- How to install? — MulensModel 2.8.2 documentation
+ How to install? — MulensModel 2.10.0 documentation
diff --git a/docs/modules.html b/docs/modules.html
index 7fb806e3..0a74c20b 100644
--- a/docs/modules.html
+++ b/docs/modules.html
@@ -6,7 +6,7 @@
- MulensModel — MulensModel 2.8.2 documentation
+ MulensModel — MulensModel 2.10.0 documentation
diff --git a/docs/objects.inv b/docs/objects.inv
index 7db77660..916ac0d0 100644
Binary files a/docs/objects.inv and b/docs/objects.inv differ
diff --git a/docs/py-modindex.html b/docs/py-modindex.html
index a23297de..2584a425 100644
--- a/docs/py-modindex.html
+++ b/docs/py-modindex.html
@@ -5,7 +5,7 @@
- Python Module Index — MulensModel 2.8.2 documentation
+ Python Module Index — MulensModel 2.10.0 documentation
diff --git a/docs/search.html b/docs/search.html
index cce28b78..ac015370 100644
--- a/docs/search.html
+++ b/docs/search.html
@@ -5,7 +5,7 @@
- Search — MulensModel 2.8.2 documentation
+ Search — MulensModel 2.10.0 documentation
diff --git a/docs/searchindex.js b/docs/searchindex.js
index dedd6ac0..f536540b 100644
--- a/docs/searchindex.js
+++ b/docs/searchindex.js
@@ -1 +1 @@
-Search.setIndex({docnames:["MulensModel","MulensModel.binarylens","MulensModel.binarylensimports","MulensModel.binarylenswithshear","MulensModel.caustics","MulensModel.causticswithshear","MulensModel.coordinates","MulensModel.event","MulensModel.fitdata","MulensModel.horizons","MulensModel.limbdarkeningcoeffs","MulensModel.magnificationcurve","MulensModel.model","MulensModel.modelparameters","MulensModel.mulensdata","MulensModel.mulensobjects","MulensModel.mulensobjects.lens","MulensModel.mulensobjects.mulenssystem","MulensModel.mulensobjects.source","MulensModel.pointlens","MulensModel.satelliteskycoord","MulensModel.trajectory","MulensModel.uniformcausticsampling","MulensModel.utils","MulensModel.version","index","install","modules","tutorial","tutorial_fit_pi_E","tutorial_fit_pspl"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":5,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.intersphinx":1,sphinx:56},filenames:["MulensModel.rst","MulensModel.binarylens.rst","MulensModel.binarylensimports.rst","MulensModel.binarylenswithshear.rst","MulensModel.caustics.rst","MulensModel.causticswithshear.rst","MulensModel.coordinates.rst","MulensModel.event.rst","MulensModel.fitdata.rst","MulensModel.horizons.rst","MulensModel.limbdarkeningcoeffs.rst","MulensModel.magnificationcurve.rst","MulensModel.model.rst","MulensModel.modelparameters.rst","MulensModel.mulensdata.rst","MulensModel.mulensobjects.rst","MulensModel.mulensobjects.lens.rst","MulensModel.mulensobjects.mulenssystem.rst","MulensModel.mulensobjects.source.rst","MulensModel.pointlens.rst","MulensModel.satelliteskycoord.rst","MulensModel.trajectory.rst","MulensModel.uniformcausticsampling.rst","MulensModel.utils.rst","MulensModel.version.rst","index.rst","install.rst","modules.rst","tutorial.rst","tutorial_fit_pi_E.rst","tutorial_fit_pspl.rst"],objects:{"":[[0,0,0,"-","MulensModel"]],"MulensModel.binarylens":[[1,1,1,"","BinaryLens"]],"MulensModel.binarylens.BinaryLens":[[1,2,1,"","adaptive_contouring_magnification"],[1,2,1,"","hexadecapole_magnification"],[1,2,1,"","point_source_magnification"],[1,2,1,"","vbbl_magnification"]],"MulensModel.binarylenswithshear":[[3,1,1,"","BinaryLensWithShear"]],"MulensModel.binarylenswithshear.BinaryLensWithShear":[[3,2,1,"","point_source_magnification"]],"MulensModel.caustics":[[4,1,1,"","Caustics"]],"MulensModel.caustics.Caustics":[[4,1,1,"","CriticalCurve"],[4,3,1,"","critical_curve"],[4,2,1,"","get_caustics"],[4,2,1,"","plot"]],"MulensModel.causticswithshear":[[5,1,1,"","CausticsWithShear"]],"MulensModel.coordinates":[[6,1,1,"","Coordinates"]],"MulensModel.coordinates.Coordinates":[[6,3,1,"","east_projected"],[6,3,1,"","ecliptic_lat"],[6,3,1,"","ecliptic_lon"],[6,3,1,"","galactic_b"],[6,3,1,"","galactic_l"],[6,3,1,"","north_projected"],[6,2,1,"","v_Earth_projected"]],"MulensModel.event":[[7,1,1,"","Event"]],"MulensModel.event.Event":[[7,3,1,"","best_chi2"],[7,3,1,"","best_chi2_parameters"],[7,3,1,"","blend_fluxes"],[7,2,1,"","calculate_chi2_gradient"],[7,3,1,"","chi2"],[7,3,1,"","chi2_gradient"],[7,3,1,"","coords"],[7,3,1,"","data_ref"],[7,3,1,"","datasets"],[7,2,1,"","fit_fluxes"],[7,3,1,"","fits"],[7,3,1,"","fluxes"],[7,2,1,"","get_chi2"],[7,2,1,"","get_chi2_for_dataset"],[7,2,1,"","get_chi2_gradient"],[7,2,1,"","get_chi2_per_point"],[7,2,1,"","get_flux_for_dataset"],[7,2,1,"","get_ref_fluxes"],[7,3,1,"","model"],[7,2,1,"","plot"],[7,2,1,"","plot_data"],[7,2,1,"","plot_model"],[7,2,1,"","plot_residuals"],[7,2,1,"","plot_source_for_datasets"],[7,2,1,"","plot_trajectory"],[7,2,1,"","reset_best_chi2"],[7,3,1,"","source_fluxes"],[7,3,1,"","sum_function"]],"MulensModel.fitdata":[[8,1,1,"","FitData"]],"MulensModel.fitdata.FitData":[[8,3,1,"","blend_flux"],[8,2,1,"","calculate_chi2_gradient"],[8,3,1,"","chi2"],[8,3,1,"","chi2_gradient"],[8,3,1,"","chi2_per_point"],[8,3,1,"","dataset"],[8,2,1,"","fit_fluxes"],[8,3,1,"","gamma"],[8,2,1,"","get_chi2_gradient"],[8,2,1,"","get_d_A_d_params_for_point_lens_model"],[8,2,1,"","get_d_A_d_u_for_point_lens_model"],[8,2,1,"","get_data_magnification"],[8,2,1,"","get_model_fluxes"],[8,2,1,"","get_model_magnitudes"],[8,2,1,"","get_residuals"],[8,3,1,"","model"],[8,2,1,"","scale_fluxes"],[8,3,1,"","source_flux"],[8,3,1,"","source_flux_ratio"],[8,3,1,"","source_fluxes"],[8,2,1,"","update"]],"MulensModel.horizons":[[9,1,1,"","Horizons"]],"MulensModel.horizons.Horizons":[[9,3,1,"","time"],[9,3,1,"","xyz"]],"MulensModel.limbdarkeningcoeffs":[[10,1,1,"","LimbDarkeningCoeffs"]],"MulensModel.limbdarkeningcoeffs.LimbDarkeningCoeffs":[[10,2,1,"","get_limb_coeff_gamma"],[10,2,1,"","get_limb_coeff_u"],[10,2,1,"","get_weighted_limb_coeff_gamma"],[10,2,1,"","set_limb_coeff_gamma"],[10,2,1,"","set_limb_coeff_u"]],"MulensModel.magnificationcurve":[[11,1,1,"","MagnificationCurve"]],"MulensModel.magnificationcurve.MagnificationCurve":[[11,2,1,"","get_binary_lens_magnification"],[11,2,1,"","get_magnification"],[11,2,1,"","get_point_lens_magnification"],[11,2,1,"","set_magnification_methods"],[11,2,1,"","set_magnification_methods_parameters"]],"MulensModel.model":[[12,1,1,"","Model"]],"MulensModel.model.Model":[[12,3,1,"","bandpasses"],[12,3,1,"","caustics"],[12,3,1,"","coords"],[12,3,1,"","data_magnification"],[12,3,1,"","datasets"],[12,2,1,"","get_data_magnification"],[12,2,1,"","get_lc"],[12,2,1,"","get_limb_coeff_gamma"],[12,2,1,"","get_limb_coeff_u"],[12,2,1,"","get_magnification"],[12,2,1,"","get_parallax"],[12,2,1,"","get_ref_fluxes"],[12,2,1,"","get_residuals"],[12,2,1,"","get_satellite_coords"],[12,2,1,"","get_trajectory"],[12,2,1,"","is_static"],[12,2,1,"","magnification"],[12,3,1,"","n_lenses"],[12,3,1,"","n_sources"],[12,2,1,"","parallax"],[12,3,1,"","parameters"],[12,2,1,"","plot_caustics"],[12,2,1,"","plot_data"],[12,2,1,"","plot_lc"],[12,2,1,"","plot_magnification"],[12,2,1,"","plot_residuals"],[12,2,1,"","plot_source"],[12,2,1,"","plot_source_for_datasets"],[12,2,1,"","plot_trajectory"],[12,2,1,"","reset_plot_properties"],[12,2,1,"","set_datasets"],[12,2,1,"","set_default_magnification_method"],[12,2,1,"","set_limb_coeff_gamma"],[12,2,1,"","set_limb_coeff_u"],[12,2,1,"","set_magnification_methods"],[12,2,1,"","set_magnification_methods_parameters"],[12,2,1,"","set_source_flux_ratio"],[12,2,1,"","set_source_flux_ratio_for_band"],[12,2,1,"","set_times"],[12,2,1,"","update_caustics"]],"MulensModel.modelparameters":[[13,1,1,"","ModelParameters"],[13,4,1,"","which_parameters"]],"MulensModel.modelparameters.ModelParameters":[[13,3,1,"","alpha"],[13,2,1,"","as_dict"],[13,3,1,"","convergence_K"],[13,3,1,"","dalpha_dt"],[13,3,1,"","ds_dt"],[13,3,1,"","gamma"],[13,3,1,"","gamma_parallel"],[13,3,1,"","gamma_perp"],[13,2,1,"","get_alpha"],[13,2,1,"","get_s"],[13,3,1,"","is_external_mass_sheet"],[13,2,1,"","is_finite_source"],[13,2,1,"","is_static"],[13,3,1,"","n_lenses"],[13,3,1,"","n_sources"],[13,3,1,"","pi_E"],[13,3,1,"","pi_E_E"],[13,3,1,"","pi_E_N"],[13,3,1,"","pi_E_mag"],[13,3,1,"","q"],[13,3,1,"","rho"],[13,3,1,"","rho_1"],[13,3,1,"","rho_2"],[13,3,1,"","s"],[13,3,1,"","shear_G"],[13,3,1,"","source_1_parameters"],[13,3,1,"","source_2_parameters"],[13,3,1,"","t_0"],[13,3,1,"","t_0_1"],[13,3,1,"","t_0_2"],[13,3,1,"","t_0_kep"],[13,3,1,"","t_0_par"],[13,3,1,"","t_E"],[13,3,1,"","t_caustic_in"],[13,3,1,"","t_caustic_out"],[13,3,1,"","t_eff"],[13,3,1,"","t_star"],[13,3,1,"","t_star_1"],[13,3,1,"","t_star_2"],[13,3,1,"","u_0"],[13,3,1,"","u_0_1"],[13,3,1,"","u_0_2"],[13,3,1,"","uniform_caustic_sampling"],[13,3,1,"","x_caustic_in"],[13,3,1,"","x_caustic_out"]],"MulensModel.mulensdata":[[14,1,1,"","MulensData"]],"MulensModel.mulensdata.MulensData":[[14,3,1,"","bad"],[14,3,1,"","bandpass"],[14,3,1,"","chi2_fmt"],[14,3,1,"","coords"],[14,2,1,"","data_and_err_in_chi2_fmt"],[14,2,1,"","data_and_err_in_input_fmt"],[14,3,1,"","ephemerides_file"],[14,3,1,"","err_flux"],[14,3,1,"","err_mag"],[14,3,1,"","flux"],[14,3,1,"","good"],[14,3,1,"","input_fmt"],[14,3,1,"","mag"],[14,3,1,"","n_epochs"],[14,2,1,"","plot"],[14,3,1,"","satellite_skycoord"],[14,2,1,"","set_limb_darkening_weights"],[14,3,1,"","time"]],"MulensModel.mulensobjects":[[16,0,0,"-","lens"],[17,0,0,"-","mulenssystem"],[18,0,0,"-","source"]],"MulensModel.mulensobjects.lens":[[16,1,1,"","Lens"]],"MulensModel.mulensobjects.lens.Lens":[[16,3,1,"","a_proj"],[16,3,1,"","caustics"],[16,3,1,"","distance"],[16,3,1,"","epsilon"],[16,3,1,"","mass"],[16,3,1,"","mass_1"],[16,3,1,"","mass_2"],[16,3,1,"","mass_3"],[16,3,1,"","n_masses"],[16,3,1,"","pi_L"],[16,2,1,"","plot_caustics"],[16,3,1,"","q"],[16,3,1,"","s"],[16,3,1,"","total_mass"]],"MulensModel.mulensobjects.mulenssystem":[[17,1,1,"","MulensSystem"]],"MulensModel.mulensobjects.mulenssystem.MulensSystem":[[17,3,1,"","lens"],[17,3,1,"","mu_rel"],[17,3,1,"","pi_E"],[17,3,1,"","pi_rel"],[17,2,1,"","plot_caustics"],[17,2,1,"","plot_magnification"],[17,3,1,"","r_E"],[17,3,1,"","r_E_tilde"],[17,3,1,"","source"],[17,3,1,"","t_E"],[17,3,1,"","theta_E"]],"MulensModel.mulensobjects.source":[[18,1,1,"","Source"]],"MulensModel.mulensobjects.source.Source":[[18,3,1,"","angular_radius"],[18,3,1,"","distance"],[18,3,1,"","pi_S"]],"MulensModel.pointlens":[[19,1,1,"","PointLens"],[19,4,1,"","get_pspl_magnification"]],"MulensModel.pointlens.PointLens":[[19,2,1,"","get_point_lens_LD_integrated_magnification"],[19,2,1,"","get_point_lens_finite_source_magnification"],[19,2,1,"","get_point_lens_large_LD_integrated_magnification"],[19,2,1,"","get_point_lens_large_finite_source_magnification"],[19,2,1,"","get_point_lens_limb_darkening_magnification"],[19,2,1,"","get_point_lens_uniform_integrated_magnification"]],"MulensModel.satelliteskycoord":[[20,1,1,"","SatelliteSkyCoord"]],"MulensModel.satelliteskycoord.SatelliteSkyCoord":[[20,2,1,"","get_satellite_coords"]],"MulensModel.trajectory":[[21,1,1,"","Trajectory"]],"MulensModel.trajectory.Trajectory":[[21,2,1,"","get_xy"],[21,3,1,"","parallax_delta_N_E"],[21,3,1,"","x"],[21,3,1,"","y"]],"MulensModel.uniformcausticsampling":[[22,1,1,"","UniformCausticSampling"]],"MulensModel.uniformcausticsampling.UniformCausticSampling":[[22,2,1,"","caustic_point"],[22,2,1,"","check_valid_trajectory"],[22,2,1,"","get_standard_parameters"],[22,2,1,"","get_uniform_sampling"],[22,2,1,"","get_x_in_x_out"],[22,2,1,"","jacobian"],[22,3,1,"","n_caustics"],[22,3,1,"","q"],[22,3,1,"","s"],[22,2,1,"","which_caustic"]],"MulensModel.utils":[[23,1,1,"","PlotUtils"],[23,1,1,"","Utils"]],"MulensModel.utils.PlotUtils":[[23,2,1,"","find_subtract"],[23,2,1,"","find_subtract_xlabel"],[23,2,1,"","get_color_differences"],[23,2,1,"","get_y_value_y_err"]],"MulensModel.utils.Utils":[[23,2,1,"","astropy_version_check"],[23,2,1,"","complex_fsum"],[23,2,1,"","date_change"],[23,2,1,"","dot"],[23,2,1,"","gamma_to_u"],[23,2,1,"","get_flux_and_err_from_mag"],[23,2,1,"","get_flux_from_mag"],[23,2,1,"","get_mag_and_err_from_flux"],[23,2,1,"","get_mag_from_flux"],[23,2,1,"","get_n_caustics"],[23,2,1,"","u_to_gamma"],[23,2,1,"","vector_product_normalized"],[23,2,1,"","velocity_of_Earth"]],MulensModel:[[1,0,0,"-","binarylens"],[2,0,0,"-","binarylensimports"],[3,0,0,"-","binarylenswithshear"],[4,0,0,"-","caustics"],[5,0,0,"-","causticswithshear"],[6,0,0,"-","coordinates"],[7,0,0,"-","event"],[8,0,0,"-","fitdata"],[9,0,0,"-","horizons"],[10,0,0,"-","limbdarkeningcoeffs"],[11,0,0,"-","magnificationcurve"],[12,0,0,"-","model"],[13,0,0,"-","modelparameters"],[14,0,0,"-","mulensdata"],[15,0,0,"-","mulensobjects"],[19,0,0,"-","pointlens"],[20,0,0,"-","satelliteskycoord"],[21,0,0,"-","trajectory"],[22,0,0,"-","uniformcausticsampling"],[23,0,0,"-","utils"],[24,0,0,"-","version"]]},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"],"3":["py","property","Python property"],"4":["py","function","Python function"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method","3":"py:property","4":"py:function"},terms:{"0":[1,3,5,7,8,11,12,13,16,19,21,22,23,26,28,29,30],"00":[6,7,23],"000":6,"00096":28,"001":[1,29],"0039":28,"005":[11,12],"01":29,"04":29,"06":28,"086":29,"0j":5,"1":[1,3,4,5,8,10,11,12,13,14,16,19,21,22,23,26,28,29,30],"10":[7,11,22,23,29],"100":[11,29],"1000":12,"10000":22,"102":29,"1025":29,"11":29,"110":29,"1103":29,"12":23,"120":28,"120755":29,"133":28,"139":[11,19],"15":[11,12,29],"150":29,"1593":[1,11,23],"16":[28,29],"1679":[1,11],"17":26,"18":[6,7,29],"180":[6,13,21],"18h00m00":6,"19":28,"1994":[11,19],"2":[4,5,7,8,10,12,13,14,16,22,23,28,29,30],"20":30,"200":[11,19,22],"2002":10,"2003":[19,28],"2004":[11,19,28],"2005":29,"2007":[1,11],"2008":[1,11,13,22,23],"2009":[11,19,22],"2010":[1,11,22],"2011":[13,21],"2012":22,"2015":[23,29],"2018":[11,19],"2022":3,"21":29,"2188":[1,11],"218982":29,"22":[12,23],"2228":22,"223":28,"23":22,"235":28,"24":3,"245":23,"2450000":[7,12,13,14,23,29],"2452810":28,"2452833":28,"2452845":28,"2452848":28,"2452890":28,"2453200":29,"2453628":29,"2453630":29,"2453950":29,"2455746":[11,12],"2455747":[11,12],"2455748":[11,12],"2456789":12,"246":23,"2460000":[7,12,14,23],"25":28,"26":29,"262":19,"27":22,"270":6,"2719":29,"2810":28,"2890":28,"29062":29,"2972":29,"2f":30,"3":[8,10,12,13,22,23,29],"30":[6,7,23,29],"30d00m00":6,"3291":29,"3400":29,"35":13,"35507":29,"360":6,"37":29,"37263":29,"377":[1,11],"3800":29,"387105":29,"395":22,"3d":23,"3f":30,"4":[1,11,22],"40":29,"400":29,"408":[1,11],"41":29,"415677":29,"421l":[11,19],"426":22,"430":[11,19],"44":29,"45":29,"479":[11,19],"488817":29,"491":22,"4f":30,"5":[10,12,14,19,26,28,29,30],"50":29,"500":29,"5000":[4,12,16,17],"505":[11,19],"515":22,"5157":[11,19],"52":22,"521":10,"53":28,"5380":30,"572":10,"587":22,"59":29,"5f":[29,30],"5th":[1,3],"6":[11,12,22,28,29],"603":[11,19],"61":28,"611301":29,"6700":29,"67778":29,"681":[1,11,23],"695":[11,19],"7":[11,12,22,29],"71":[11,19,29],"738":13,"787":22,"8":[28,30],"84":29,"87":13,"927":3,"93":29,"947":29,"949":29,"95":29,"9th":3,"boolean":[1,7,8,12,13,14,19,21],"case":[6,10,12,13,14,16,22,29,30],"class":[1,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23,25,28,30],"default":[1,4,6,7,8,11,12,13,14,21,22,23,28],"do":[1,3,7,12,13,22,28,29],"export":26,"final":[1,30],"float":[1,3,4,5,6,7,8,10,11,12,13,14,16,17,18,19,20,21,22,23,29,30],"function":[1,7,8,11,12,13,14,16,21,22,23,25,29,30],"import":[6,7,9,12,22,28],"int":[4,7,12,13,14,16,17,22,23],"long":[14,29],"public":19,"return":[1,3,4,6,7,8,9,10,11,12,13,14,19,20,22,23,25,29,30],"static":[7,13,23],"true":[1,3,7,8,11,12,13,14,21,22,28,29],"try":[29,30],A:[6,8,10,12,13,14,16,17,19,21,22,23,30],And:[28,29],As:[1,29],At:29,Be:19,But:29,For:[1,7,8,9,11,12,13,19,21,22,25,28],IN:8,If:[1,3,6,7,8,11,12,13,14,16,17,18,19,23,26,28,29,30],In:[6,7,12,13,22,26,30],Is:23,It:[1,7,10,12,13,17,21,28,29],Its:30,NOT:28,Not:[12,16],ON:12,ONE:12,Or:28,That:25,The:[1,3,4,7,8,10,11,12,13,14,16,17,18,19,21,22,23,28,29,30],Then:[12,13,28,29,30],There:7,These:7,To:[4,8,12,13,22,26,30],Will:[7,8,14],__future__:28,__init__:14,_lens_:11,_not_:19,_point_:11,a_proj:16,abil:30,about:[12,29,30],abov:[7,8,22,26,30],acc:1,accept:[4,7,8,12,14],access:[7,13],accord:[13,22],account:[12,21],accur:[7,23],accuraci:[1,11,12],across:14,actual:16,ad:[7,16,28],adapt:1,adaptive_contour:11,adaptive_contouring_magnif:[1,11],adaptivecontour:[1,11,26],add:[1,14,26],add_2450000:[14,29],add_2460000:14,addit:[11,12],addition:29,adequ:12,advanc:[1,22],advis:28,advoc:13,affect:[1,12,21],after:[8,16],al:[3,10,11,13,19,21,22,23,28,29],algorithm:[1,22,23,29],all:[7,8,12,14,16,21,22,25,26,28,30],all_approxim:1,allow:[7,8,11,12,13,30],almost:14,along:[4,12],alpha:[12,13,14,17,21,22,28,29],alpha_list:12,alreadi:7,also:[1,7,8,12,14,17,19,22,28,29],altern:[12,22],alwai:[4,5,13,14,17],amplitud:30,an:[6,7,8,9,10,12,13,16,20,22,23,25,29,30],analysi:22,analyz:12,angl:[6,12,13,22],angular:[17,18],angular_radiu:18,ani:12,annual:29,annuli:[11,19],anyth:8,apj:[1,3,10,11,13,19,23],appendix:21,appli:[12,22,30],applic:[1,7,8],approach:[19,29],appropri:[7,12,14],approxim:[1,11,19,30],ar:[1,3,4,6,7,8,11,12,13,14,16,17,18,19,21,22,23,25,26,28,29,30],arbitrari:[8,25],archiv:[26,28],area:1,aren:14,arg:[6,12,13,29,30],argument:[7,8,9,11,12,13,16,17,19,21,22,23,30],around:[29,30],arrai:[6,7,8,16,19],arrow:12,arrow_kwarg:12,as_dict:13,associ:30,assum:[7,11,12,13,14,16,17,18,19,21],astropi:[6,7,9,11,12,13,14,16,17,18,20,21,23,26],astropy_version_check:23,attach:12,attr:[7,8],attribut:[1,3,4,5,7,11,12,13,18,19,20,21,30],au:[16,17],author:[14,26],avail:[11,28],axi:[1,3,4,7,12,13,14,22,23,29,30],b:29,back:29,background:18,bad:[7,8,12,14],band:[7,10,12,14],bandpass:[8,10,12,14],barycentr:23,base:[1,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23,30],baselin:30,bash:26,bashrc:26,basic:[7,13],bayesian:22,becaus:[7,14,22,29],been:7,befor:[1,3,16,26],begin:[13,23,28],behavior:[7,12],below:[22,29],best:[8,12,13,25,28,29,30],best_chi2:[7,29],best_chi2_paramet:[7,29],better:[29,30],between:[1,3,4,5,8,11,12,13,16,17,22,23,29],bfg:30,binari:[1,3,7,8,11,12,13,21,22,23],binarylen:[0,3,27],binarylensimport:[0,27],binarylenswithshear:[0,27],bjd:14,bjd_tdb:14,black:[12,23,28,29],blend:[7,8,12],blend_flux:[7,8,12],blend_flux_0:8,blg234:29,blg:[19,28,29],bodi:[1,3,4,5,13,16,17,28],bond:28,bool:[7,8,12,13,22,23],both:[1,3,4,8,10,12,22,23,29],bottom:22,bozza:[1,11,19],bright:[14,29],brighter:30,burn:29,button:26,c:[19,22,26,30],calcul:[1,3,4,6,7,8,11,12,13,14,19,20,21,22,23,29,30],calculate_chi2_gradi:[7,8],call:[7,8,12,13,14,22,30],can:[1,7,8,10,11,12,13,14,19,22,25,26,28,29,30],cannot:13,cartesian:23,cartesianrepresent:[9,23],cassan:[13,22],caustic:[0,5,7,12,13,16,17,22,23,27],caustic_point:22,causticswithshear:[0,27],center:[1,3,4,10,13,21],central:22,cg:30,chain:29,chang:[7,8,12,13,14,22,23,30],check:[8,13,14,22,23,26,29],check_valid_trajectori:22,chi2:[7,8,14,25,28],chi2_fmt:[7,14],chi2_for_model:30,chi2_gradi:[7,8],chi2_initi:30,chi2_per_point:8,chi:[7,8,14,29,30],choic:30,choos:29,chosen:1,circl:12,circular:[11,12],cite:[3,22],clariti:29,clockwis:22,close:22,cobyla:30,code:[11,14,22,23,26,28,29,30],coeff:12,coeffici:[1,8,10,11,12,14,18,19,23],color:[12,14,22,23,28,29],color_differ:23,color_list:[12,23],colorbar:22,column:14,combin:[7,12,13,16,29,30],come:29,command:[12,26],comment:28,common:29,companion:16,compar:[11,12],complex128:22,complex:[1,3,13,22,23],complex_fsum:23,complic:22,compon:[6,8,13,16,21,22],comput:[8,11,19,29],condit:22,configur:22,congratul:[26,30],conniv:6,consid:[11,22],consist:[14,17],constraint:[12,30],contact:[14,26],contain:[7,14,30],content:27,contour:[1,11],contrari:[7,12],contribut:[7,8,10],control:[7,12],conveni:29,convent:[1,10,11,12,13,14,21,22,23],converg:[3,11,13],convergence_k:[3,5,13],convert:30,coord:[7,11,12,14,21,29],coordin:[0,1,3,4,7,11,12,13,14,16,20,21,22,27,29],correspond:[4,5,8,12,16,22,30],could:28,counter:22,counterclockwis:13,cover:14,cpp:26,creat:8,critic:4,critical_curv:4,criticalcurv:4,cross:[13,17,22],cshrc:26,cubic:20,current:[7,8,12,19,26,29],curv:[4,7,11,12,17,19,25,29],curvelinear:[13,22],d:[7,8],da:8,dai:[13,17,30],dalpha_dt:13,darken:[1,8,10,11,12,14,18,19,23],dash:29,dat:[20,29,30],data:[7,8,12,14,20,23,25,29],data_and_err_in_chi2_fmt:14,data_and_err_in_input_fmt:14,data_err:14,data_list:14,data_magnif:[8,12],data_num:7,data_path:[28,29,30],data_ref:[7,12],datapoint:8,dataset:[7,8,12,14,28,29,30],date:[11,12,14,23],date_chang:23,dec:[6,9,12,14],def:[29,30],default_method:11,defin:[1,3,4,6,7,8,12,13,14,16,21,22,26,30],definit:[16,21],deg:[6,13,21],degener:29,degre:[6,12,13,17,28],depend:[7,9,30],deprec:[7,8,12,14],deriv:[8,12],descript:[11,22,25],desir:8,detail:[7,12],determin:[1,8,12,28],dfm:29,dict:[7,8,10,11,12,13,14,21,22,29],dictionari:[10,11,12,13,14,21,22],didn:26,differ:[7,12,14,21,22,23,29,30],dimensionless:[17,21],direct:[12,19],directli:[11,12,13],directori:26,dispers:29,distanc:[9,16,18],distribut:22,doctr:[7,12],doe:[1,7,8,22,28,29],doesn:11,dominik:[1,11],don:[22,28,29],done:[14,29,30],dot:23,dot_product:23,doubl:[12,13,23],download:[26,28,29,30],dozen:30,draw:22,drawn:22,ds_dt:13,dt:12,du:8,due:12,dure:1,e9967a:23,e:[4,5,6,7,8,9,10,11,12,13,14,19,21,22,23,26,30],each:[7,8,10,12,14,16,19,21,22],earth:[6,12,23,29],earth_coord:21,earth_orbit:[11,12,21],easi:[19,29],easili:30,east:[6,13,21],east_project:6,eclipt:6,ecliptic_lat:6,ecliptic_lon:6,effect:[11,12,13,14,19,21,28,29],einstein:[1,3,4,5,13,16,17,19,22],either:[1,7,12,13,14,18,26],element:[8,12],ellips:12,els:[29,30],emce:29,en:23,enclos:1,encourag:30,enough:29,ensemblesampl:29,ensur:8,entranc:[13,22],enumer:[29,30],ephemeri:14,ephemerid:[9,11,12,14,20,21],ephemerides_fil:[12,14,20],ephemeris_fil:20,epoch:[6,7,11,12,13,14,20,21,22,23,29],epsilon:16,eq:22,equal:[4,12,13,17,22],equat:[1,3,11,19],err:14,err_flux:[8,14,23],err_mag:[14,23,30],error:[1,11,14],errorbar:[7,8,12,14,30],es:[7,8,12],estim:[1,30],et:[3,10,11,13,19,21,22,23,28,29],etc:[1,3,7,13,14],evalu:[8,14,22,30],even:8,evenli:12,event:[0,1,6,11,12,14,21,22,25,27,28,29,30],everi:[10,12,26,29],everyth:28,ew:29,exactli:12,exampl:[7,12,13,14,20,22,28,29,30],except:[12,21,22],exclud:14,execut:[1,8],exist:[7,22],exit:[13,22],exoplanet:28,expand:28,expect:12,explan:[7,12],explicitli:[12,13,28],extend:14,extern:[3,13],extract:26,f_blend:12,f_sourc:12,fals:[1,7,8,11,12,14,19,21,22,23],far:11,fast:19,favourit:30,featur:[12,28],few:30,fig:22,figur:[28,29,30],file:[9,11,12,14,20,21,23,26,29,30],file_nam:[9,14,28,29,30],fill:12,filter:10,find:[12,23,25,29],find_subtract:23,find_subtract_xlabel:23,fine:[22,29,30],finer:12,finit:[1,11,13,19,28],finite_source_ld_lee09:11,finite_source_ld_wittmao94:11,finite_source_ld_yoo04:11,finite_source_ld_yoo04_direct:11,finite_source_uniform_gould94:11,finite_source_uniform_gould94_direct:11,finite_source_uniform_lee09:11,finite_source_uniform_wittmao94:11,first:[7,10,12,23,28,30],fit:[7,8,12,13,14,22,25,28],fit_blend:[7,12],fit_flux:[7,8],fitdata:[0,7,27],fix:[7,8,10,12,13],fix_blend:7,fix_blend_flux:[7,8],fix_source_flux:[7,8],fix_source_flux_ratio:[7,8],flag:[7,14],flux:[7,8,10,12,14,23,28,30],flux_err:23,flux_ratio_constraint:12,flux_source_1:12,flux_source_2:12,flux_source_band_1:12,flux_source_band_2:12,fmt:[14,30],fold:22,follow:[21,23,28],form:[11,12,29],formal:19,format:[7,14,23,29,30],found:30,four:22,fpic:26,fraction:[1,3,4,5,13,16,17,19],frame:[9,23],free:8,frequent:[10,22],from:[6,7,8,9,11,12,14,19,20,21,22,23,26,28,29,30],fsbl:13,fspl:13,fsum:7,full:[23,29],full_bjd:[6,23],fulli:26,fun:30,further:29,g:[6,7,8,10,11,12,13,14,19,21,23,26,30],galact:6,galactic_b:6,galactic_l:6,gamma:[1,8,10,11,12,13,14,19,23],gamma_parallel:13,gamma_perp:13,gamma_to_u:23,gaussian:14,gave:7,gca:[4,12,30],gcc:26,gener:[11,21,23,25],get:[7,10,12,13,14,22,23,28,30],get_:13,get_alpha:13,get_binary_lens_magnif:11,get_caust:4,get_chi2:[7,28,29,30],get_chi2_for_dataset:7,get_chi2_gradi:[7,8],get_chi2_per_point:7,get_color_differ:23,get_d_a_d_params_for_point_lens_model:8,get_d_a_d_u_for_point_lens_model:8,get_data_magnif:[8,12],get_flux_and_err_from_mag:23,get_flux_for_dataset:7,get_flux_from_mag:23,get_lc:12,get_limb_coeff_gamma:[8,10,12],get_limb_coeff_u:[10,12],get_mag_and_err_from_flux:23,get_mag_from_flux:23,get_magnif:[11,12],get_model_flux:8,get_model_magnitud:8,get_n_caust:23,get_parallax:12,get_point_lens_finite_source_magnif:19,get_point_lens_large_finite_source_magnif:19,get_point_lens_large_ld_integrated_magnif:19,get_point_lens_ld_integrated_magnif:19,get_point_lens_limb_darkening_magnif:19,get_point_lens_magnif:11,get_point_lens_uniform_integrated_magnif:19,get_pspl_magnif:19,get_ref_flux:[7,12],get_residu:[8,12],get_satellite_coord:[12,20],get_standard_paramet:22,get_trajectori:12,get_uniform_sampl:22,get_weighted_limb_coeff_gamma:10,get_x_in_x_out:22,get_xi:21,get_y_value_y_err:23,github:26,give:[4,7,10,12,13,14,20,30],given:[1,3,4,5,6,7,8,10,11,12,13,14,16,18,20,21,22,23,25,30],go:[12,22,26],goe:29,good:[8,14,28,30],got:29,gould:[1,11,19],gradient:[7,8],green:[1,26],ground:12,guarante:28,guess:30,h:19,ha:[7,8,10,12,13,17,21,22,29,30],had:28,hand:[1,3,22],handl:13,happen:12,have:[7,10,12,14,26,29,30],haven:[7,29],he:29,henc:[11,12,29,30],here:[12,19,22,29,30],hexadecapol:[1,11,12],hexadecapole_magnif:[1,11],high:12,higher:[1,3,21,29],hjd:[14,29],hold:9,home:26,hope:29,horizon:[0,20,27],hour:12,hourangl:6,how:[1,14,21,28,29,30],howev:22,http:[23,29],human:[7,12,14],i:[1,4,5,7,8,9,10,11,12,13,14,19,22,29,30],i_caust:22,id:29,ignor:[1,12],imag:[1,3,22],impact:[17,22,29,30],implement:[1,4,5,12,16,19],importantli:23,includ:[3,7,8,11,12,13,14,19,21,26,29,30],index:[7,12,25,29],index_dataset:7,indic:22,individu:8,inf:29,info:9,inform:[7,12,13,29,30],inherit:6,initi:30,initial_guess:30,input:[9,13,14,19,21,22,23,25],input_fmt:14,inspect:30,instal:[23,25],instanc:[7,12,13,14,21,30],instantan:[13,19],instead:[1,7,12,13,19,22,29],instruct:[9,14],integr:[1,11,19,22],intermedi:22,intern:[4,12,21,22],interpol:[11,14,19,20],interv:12,introduc:[10,23],invert:30,invert_yaxi:30,invok:26,io:29,is_external_mass_sheet:13,is_finite_sourc:13,is_stat:[12,13],isfinit:29,isinst:[29,30],isnan:29,iter:[11,23],its:[1,3,7,10,14],j:19,jacobian:[7,8,13,22],jd:30,join:[28,29,30],jpl:[9,20],julian:[11,12,23],jupyt:28,just:[7,12,20,26,30],k2_ephemeris_01:20,k:[7,8],kain:22,keep:[7,22],kei:[7,8,10,11,12,14,21,22,29,30],keyword:[4,6,7,8,12,14,16,17,19,20,22],km:[6,23],know:[1,3,28],kpc:[16,18],kwarg:[4,6,7,8,11,12,14,16,17],l:6,label:[14,29,30],label_list:12,larg:[7,11,19],larger:[4,12,14,19,22],last:[26,30],later:[19,23,29],latitud:6,latter:[7,29],ld_accuraci:1,learn:[29,30],least:[8,13],leav:28,lee:[11,19],left:[1,3,4],legend:[7,29,30],len:[0,1,3,4,7,8,11,12,13,15,17,19,21,22,23,28,29,30],length:[4,12,14,22,23],lens:[4,5,7,12,19,25],less:30,let:[29,30],librari:1,light:[7,11,12,19,25,29],like:[12,22],likelihood:[25,29],limb:[1,8,10,11,12,14,18,19,23],limb_darken:18,limbdarkeningcoeff:[0,12,14,18,19,27],limit:12,line:1,linear:[1,8,10],linestyl:28,linewidth:12,link:[7,8,12],linspac:22,list:[4,7,8,11,12,13,14,16,20,21,22,23,29,30],lm:26,ln_like:29,ln_like_:29,ln_prior:29,ln_prior_:29,ln_prob:29,load:14,loadtxt:14,loc:[29,30],logarithm:29,longer:[7,12],longitud:6,look:[12,29,30],lower:[1,3,22],ls:29,lstdc:26,lumin:[12,13],lw:29,m:1,m_1:16,m_i:16,ma:[17,18],macho:19,mag:[7,8,12,14,23,30],mag_zeropoint:12,magnif:[1,3,8,11,12,17,19,30],magnification_vector:12,magnificationcurv:[0,12,27],magnitud:[7,8,12,13,14,23,30],mai:[1,3,4,6,7,12,13,14,16,18,29,30],main:[13,25,28],make:[1,3,7,12,14,26,29],mani:13,mao:[11,19],mark:[7,12,14],marker:[7,12,14],marker_list:12,markers:14,martin:[1,11],mass:[1,3,4,5,13,16,17,19,21,22,23],mass_1:[1,3,16],mass_2:[1,3,16],mass_3:16,materi:30,math:7,matplotlib:[4,7,12,14,22,23,28,29,30],matter:14,mayb:12,mead:30,mean:[1,3,7,12,22,23],measur:[13,14],mention:[7,8],messag:30,method:[1,11,12,19,28,30],methods_paramet:[11,12],microarcsecond:18,microlens:[7,10,11,12,13,14,17,19,21,22,25,28],might:28,millarcsecond:18,milliarcsecond:[16,17,18],mind:22,minim:30,minimum:[13,22,23],miss:16,mitig:[4,12],mm:[28,29,30],mnra:[1,11,19,22],moa:28,moa_data:28,mode:29,model:[0,7,8,11,13,14,17,19,21,22,25,27,29],model_0:29,model_1:29,model_2:29,model_flux:8,model_mag:8,model_paramet:13,modelparamet:[0,11,12,17,19,21,22,25,27],modifi:29,modul:[25,27,29,30],month:23,more:[7,8,10,12,14,16,17,22,29,30],most:[6,12,13,14,23,28],motion:[12,13,17,19,29],mu:25,mu_rel:17,much:30,mulensdata:[0,7,8,11,12,25,27,28,29,30],mulensmodel:[26,28,29,30],mulensobject:[0,27],mulenssystem:[0,15],multi:13,multinest:29,multipl:[11,12,14,19],must:[7,8,12,13,14,17,22],my_1s2l_model:28,my_data:[7,29,30],my_ev:[28,29,30],my_friends_data:30,my_model:29,my_pspl_model:28,n:[21,22],n_burn:29,n_caustic:[22,23],n_dim:29,n_epoch:[12,14],n_lens:[12,13],n_mass:16,n_min_for_caust:22,n_point:[4,12,16,17,22],n_sourc:[8,12,13],n_step:29,n_walker:29,name:[8,9,10,11,12,20,29],nasa:28,nbest:29,ndarrai:[7,8,9,11,12,13,14,16,19,20,21,22,23,30],ndim:30,ne:13,necessari:[14,26],need:[7,8,11,12,13,14,23,26,29,30],neg:[1,3,7,21,29],neither:1,nelder:30,net:21,next:30,nfev:30,nice:[12,29,30],nicer:14,non:29,none:[1,3,7,8,11,12,14,16,17,18,19,20,21,22,23],normal:[12,23],north:[6,13,21],north_project:6,note:[1,3,4,6,7,10,11,12,13,14,16,17,22,28,29,30],notebook:28,noth:12,now:[28,29,30],np:[6,7,8,9,11,12,13,14,16,19,20,21,22,23,29,30],number:[4,7,12,13,14,16,17,22,23,29],numer:19,numpi:[7,12,14,16,22,29,30],o:26,ob03235:28,ob03235_moa:28,ob03235_ogl:28,ob05086:29,ob08092:30,object:[1,3,4,6,7,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23],observ:[17,29],observatori:12,obtain:11,obviou:22,obvious:29,oct:23,off:[12,29],offset:21,ogl:[19,28,29],ogle_data:28,ok:[29,30],onc:12,one:[7,8,12,13,17,29,30],ones:[7,23],onli:[4,5,7,8,12,13,14,16,17,19,22,29,30],onto:17,op:30,open:26,opposit:[13,14],optim:[7,22,28,30],option:[1,4,7,8,11,12,14,20,21],orbit:[12,13],order:[1,3,7,12,14,22,26,30],org:23,origin:[1,3,4,21],os:[28,29,30],other:[1,3,4,7,8,10,11,12,14,22,23,29,30],otherwis:[7,8,23],our:30,out:[23,29],out_text:23,outlin:4,output:[9,21,23,30],outsid:11,over:[7,12,14],overal:8,overestim:1,p:[22,29],packag:[19,23,25,26,27,29,30],paczynski:[11,19],page:[23,25,26],pair:[6,22],panel:22,paper:[1,22],parallax:[11,12,13,14,16,17,18,21,25],parallax_delta_n_:21,parallel:13,param:[13,29],paramet:[1,3,4,6,7,8,10,11,12,13,14,16,17,19,20,21,22,23,25,28,29],parameter:13,parameteris:22,parameters_to_fit:[29,30],pariti:[1,3],part:[23,26],partial:8,particular:[7,13],pass:[7,11,12,14,16,17,26,30],path:[14,20,26,28,29,30],pc:18,peak:30,peirson:3,per:22,percentil:29,perform:8,period:14,perpendicular:[13,23],phot_fmt:[7,8,14,23,28],phot_ob08092_o4:30,photometr:[8,14],photometri:[12,14],photometry_fil:[28,29,30],physic:[17,18],pi_:18,pi_e:[13,17,29],pi_e_:[7,8,13,29],pi_e_mag:13,pi_e_n:[7,8,13,29],pi_l:16,pi_rel:17,piec:[29,30],pip:26,place:23,plane:[4,6,17,21,23],planet:28,planetari:22,pleas:[3,26,28],plot:[4,7,8,12,14,16,17,22,23,28],plot_caust:[12,16,17],plot_data:[7,12,14,28,29,30],plot_lc:[7,12,14,29,30],plot_magnif:[12,17,28],plot_model:[7,28],plot_param:29,plot_properti:14,plot_residu:[7,12,14],plot_sourc:[7,12],plot_source_for_dataset:[7,12],plot_trajectori:[7,12],plotutil:23,plt:[4,12,22,28,29,30],point:[1,3,4,7,8,11,12,13,14,16,17,19,22,23,28,29,30],point_sourc:11,point_source_magnif:[1,3],point_source_point_len:11,pointlen:[0,27],pointlik:19,polynomi:[1,3],posit:[1,3,7,9,11,12,14,19,21,22,29],possibl:[1,3,4,12,13,14],powel:30,pre:11,preced:7,precis:19,prepar:9,prescript:11,present:[1,19,30],previou:[7,12],previous:[7,8,12],primari:[1,3,13,14,16],print:[7,12,13,28,29,30],print_funct:28,prior:29,probabl:[8,29],problem:[14,26],procedur:30,produc:[8,22],product:23,profil:[1,26],project:[6,13,16,17,23],proper:[17,19],properti:[4,6,7,8,9,12,13,14,16,17,18,21,22,29],propos:19,provid:[1,7,12,14,19,22,29],psbl:13,pspl:[8,13,19],pspl_magnif:19,pspl_model:30,put:22,py:[7,8,12,26],pyplot:[4,12,14,16,17,22,23,28,29,30],python2:28,python3:28,python:[26,29],pythonpath:26,q:[1,3,4,5,13,16,21,22,23,28],quadrupol:[1,11,12],qualiti:12,quantiti:[13,16,17,18,23],quit:22,r:[26,29],r_e:17,r_e_tild:17,ra:[6,9,12,14],rad:13,radian:28,radiu:[1,12,13,17,18,19],rais:22,randn:29,random:29,randomli:22,rang:[7,11,12,14,22,28,29],rapper:26,rare:12,rate:13,ratio:[4,5,7,8,12,13,16,22,23,30],re:[1,3,8,26,28,29],read:[4,9,16,17],readi:29,real:22,recalcul:[7,8],recent:26,recommend:[1,3],rectilinear:29,red:[12,28,30],refer:[7,8,9,12,13,29],refit:8,regard:19,regardless:13,regress:12,reject:29,rel:[1,8,10,11,13,16,17,19,22,23,29],relat:[1,23,30],releas:26,relev:7,rememb:[7,10,12],remov:12,repeat:[22,26],report:[8,29],repositori:26,repr:29,repres:[6,23],represent:12,request:[1,6,7,8,12,23],requir:[7,8,14,21,22,26,30],rescal:8,reset:[7,12],reset_best_chi2:7,reset_plot_properti:12,reshap:29,residu:[7,8,12,14,29],reson:22,respect:[7,8,12,14],result:[1,7,28,29,30],result_fun:30,retriev:8,rho:[1,11,12,13,19,28],rho_1:13,rho_2:13,right:[1,3,22,26],ring:[1,3,4,5,13,16,17,22],rough:30,round:29,routin:[22,30],run:[7,8,22,26],run_mcmc:29,s:[1,3,4,5,6,12,13,16,17,19,22,23,26,28,29,30],sai:29,same:[7,11,12,14,19,22,23,30],sampl:[22,29],sample_file_01:14,satellit:[9,11,12,14,20,21],satellite_skycoord:[11,12,14,20,21],satelliteskycoord:[0,12,27],save:[8,14],scale:[4,7,8,12,14,16,23,28],scale_flux:8,scatter:[4,7,12,14,16,17,22],scheme:22,scipi:30,search:[25,29],sec:1,second:[23,29,30],secondari:[1,3,13,16],see:[1,7,8,9,11,12,13,14,16,17,19,20,21,22,25,28,29,30],seem:30,select:22,self:[7,12],separ:[1,3,4,5,7,8,11,12,13,16,19,22,23,29],sequenc:[1,30],set:[1,6,7,8,10,11,12,13,14,16,17,18,21,25,28,30],set_aspect:[4,12],set_dataset:[12,29,30],set_default_magnification_method:12,set_limb_coeff_gamma:[10,12],set_limb_coeff_u:[10,12],set_limb_darkening_weight:14,set_magnification_method:[11,12,28],set_magnification_methods_paramet:[11,12],set_source_flux_ratio:12,set_source_flux_ratio_for_band:12,set_tim:12,setattr:[13,29,30],setenv:26,setup:26,share:26,shear:[3,11,13],shear_g:[3,5,13],sheat:3,sheet:[3,13],shift:[13,21],should:[1,7,8,11,12,14,18,21,22,23,26,30],shouldn:14,show:[7,12,14,22,28,29,30],show_bad:[7,12,14],show_data:12,show_errorbar:[7,12,14],shown:[7,12],sigma:29,sign:13,signific:12,significantli:1,similar:[14,22,23,26,30],simpl:28,simpli:13,simplifi:19,simpson:1,sinc:28,singl:[7,8,12,16,23,29,30],size:[1,12,13,14,16,17,19,22,23],size_list:12,skip:26,skowron:[13,21],sky:[6,11,12,14,21,23],sky_coordin:6,skycoord:[6,7,11,12,14,20,21],slightli:[7,12,29,30],slow:[11,19],slower:[7,29],small:[1,19,23,29],smaller:[11,12,22],smallest:[7,30],smooth:22,so:[1,7,12,21,22,26,28,30],solar:16,solmass:[16,17],solut:[1,3,29],some:[1,3,7,22,25,28,29,30],someth:7,somewhat:28,sonam:26,sourc:[0,1,3,7,8,11,12,13,15,17,19,21,22,26,28,29,30],source_1_paramet:13,source_2_paramet:13,source_flux:[7,8,12],source_flux_0:8,source_flux_1:[8,12],source_flux_2:12,source_flux_ratio:[8,12],source_i:[1,3],source_x:[1,3],space:[7,8,10,12,14,22,23],special:14,specif:[12,13,22],specifi:[6,7,8,11,12,14,16,17,18,19,21,22,28,29,30],spheric:12,sphinx:8,spitzer_ephemeris_01:20,split:29,squar:[1,4,8,12],stabl:19,stamp:21,standard:[9,11,13,16,22],star:[17,18,19,29],starblg234:29,start:[1,3,7,12,22,28,29,30],start_1:29,startup:26,state:1,step:[26,29,30],still:30,stoke:11,stop:12,store:[4,12,16,30],str:[6,7,8,9,10,11,12,13,14,20,21,23,30],string:[7,14,23],structur:[4,5,12,17],studi:10,subdirectori:26,submodul:27,subpackag:[27,30],subtract:[7,12,14,23],subtract_2450000:[7,12,14,23,28,29],subtract_2460000:[7,12,14,23],success:[12,30],suitabl:[1,12],sum:[1,7,8,12,16,21,23],sum_funct:7,sun:[12,29],suppli:14,support:13,suppos:[23,28],suppress:14,sure:[1,3,7,12,14,26],symbol:[12,22],symmetr:22,system:[1,3,8,12,13,14,16,17,21],systemat:22,t:[7,8,11,14,22,26,28,29],t_0:[7,8,12,13,22,28,29,30],t_0_1:[12,13],t_0_2:[12,13],t_0_kep:[12,13],t_0_par:[6,13,29],t_1:29,t_2:29,t_caustic_in:[13,22],t_caustic_out:[13,22],t_e:[7,8,12,13,17,22,28,29,30],t_e_1:13,t_e_2:13,t_eff:[7,8,13],t_rang:[7,12,28],t_star:13,t_star_1:13,t_star_2:13,t_start:[12,29],t_stop:[12,29],tabl:11,take:[7,8,22,29],taken:[7,12,14,21],tbd:[14,16],tbl:28,tcsh:26,tdb:9,termin:26,tertiari:16,test:[1,26],text:23,th:[7,8],than:[1,3,8,10,11,12,14,16,17,22,29,30],thei:[7,8,11,12,14,22,29],them:[1,14,29,30],theorem:[1,11],theta:[29,30],theta_:[17,23],thi:[1,3,4,7,8,11,12,13,14,16,19,21,22,23,26,28,29,30],thing:[28,30],third:30,those:[7,12,28],three:[1,14,29],thu:22,time:[1,7,9,11,12,13,14,17,20,21,22,23,26,28,29,30],timescal:[13,29],titl:[7,29],tnc:30,togeth:[28,30],tolist:30,topocentr:[11,12,21],topolog:22,total:[1,3,8,10,14,16],total_mass:16,toward:6,trajectori:[0,7,11,12,13,14,19,22,27],transform:[12,23],translat:14,trend:29,tupl:[7,12],turn:[12,29,30],tutori:25,two:[1,3,4,8,12,13,22,28,29,30],txt:[26,28],type:[8,10,12,13,14,19,21,23,30],u:[1,6,10,11,12,18,19,23],u_0:[7,8,13,17,22,28,29,30],u_0_1:13,u_0_2:13,u_limb_darken:1,u_to_gamma:23,uncertainti:[1,8,14,23],under:22,underli:11,uniform:[11,19,22],uniform_caustic_sampl:13,uniformcausticsampl:[0,13,27],uniformli:22,unit:[6,12,13,14,16,17,18,26],unless:[12,14],unnorm:29,unpack:26,up:28,updat:[7,8,12,26],update_caust:12,upper:22,us:[1,3,4,7,8,10,11,12,13,14,16,17,19,20,21,22,23,26,28,29,30],usag:[13,14],user:12,user_nam:26,util:[0,12,27],v:[10,14],v_earth_perp_:6,v_earth_perp_n:6,v_earth_project:[6,23],val:29,valerio:[1,11],valid:13,valu:[1,6,7,8,10,11,12,13,14,16,18,19,21,22,23,25,29,30],valueerror:22,variat:1,vastli:1,vbbinarylens:[11,19],vbbinarylensinglibrari:26,vbbinarylensinglibrary_wrapp:26,vbbl:[1,11,12,26,28],vbbl_magnif:[1,11],vbbl_on:3,ve:26,vector:[4,11,12,13,14,21,23,29],vector_1:23,vector_2:23,vector_product_norm:23,veloc:[6,13,23],velocity_of_earth:23,veri:[1,11,12,19,22,23,29,30],version:[0,23,26,27],via:[12,30],visibl:14,visual:22,vs:14,wa:[7,8,12,19,29,30],wai:[12,22],walker:29,want:[7,8,12,14,16,23,28,29,30],we:[7,12,22,23,28,29,30],websit:[1,29],weight:[10,14],well:[8,11,12,19,29],were:[14,28],what:[1,3,11,21],when:[7,10,11,12,14,22],where:[6,12,22,30],whether:[7,8,12,13,14],which:[6,7,8,11,12,13,16,20,21,22,29,30],which_caust:22,which_paramet:13,wide:22,width:12,wiki:23,wikipedia:23,window:26,without:[8,11,12,14,16,29],witt:[11,19],wl:26,won:[8,14],work:[8,11,14,19,22,26,28],would:[8,30],written:28,wrong:29,wyrzykowski:29,x0:30,x:[1,3,4,7,9,12,14,16,21,22,28,30],x_caustic:22,x_caustic_in:[13,22],x_caustic_out:[13,22],x_caustic_point:22,x_caustic_sep:22,xallarap:[12,13],xlabel:23,xlim:[28,29],xy:21,xyz:9,y:[1,3,4,9,16,21,22,23],year:[13,29],yerr:30,yet:[7,12,22,29],ylim:28,yoo:[11,19],you:[1,3,7,8,10,11,12,13,14,16,22,23,26,28,29,30],your:[22,26,28,30],yr:[13,17],z:9,zero:[7,22],zeropoint:23,zoom:[29,30],zorder:14,zorder_list:12},titles:["MulensModel package","MulensModel.binarylens module","MulensModel.binarylensimports module","MulensModel.binarylenswithshear module","MulensModel.caustics module","MulensModel.causticswithshear module","MulensModel.coordinates module","MulensModel.event module","MulensModel.fitdata module","MulensModel.horizons module","MulensModel.limbdarkeningcoeffs module","MulensModel.magnificationcurve module","MulensModel.model module","MulensModel.modelparameters module","MulensModel.mulensdata module","MulensModel.mulensobjects package","MulensModel.mulensobjects.lens module","MulensModel.mulensobjects.mulenssystem module","MulensModel.mulensobjects.source module","MulensModel.pointlens module","MulensModel.satelliteskycoord module","MulensModel.trajectory module","MulensModel.uniformcausticsampling module","MulensModel.utils module","MulensModel.version module","Welcome to MulensModel\u2019s documentation!","How to install?","MulensModel","Very Basic Tutorial","Microlensing Parallax Fitting Tutorial","Basic Fitting Tutorial"],titleterms:{"import":[29,30],basic:[28,30],binarylen:1,binarylensimport:2,binarylenswithshear:3,caustic:4,causticswithshear:5,combin:28,content:[0,15,25],coordin:6,data:[28,30],defin:28,document:25,event:7,exercis:[29,30],fit:[29,30],fitdata:8,horizon:9,how:26,indic:25,instal:26,introduc:28,len:16,limbdarkeningcoeff:10,magnificationcurv:11,microlens:29,model:[12,28,30],modelparamet:13,modul:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],mulensdata:14,mulensmodel:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,27],mulensobject:[15,16,17,18],mulenssystem:17,old:26,packag:[0,15],parallax:29,paramet:30,plot:[29,30],pointlen:19,prepar:30,run:29,s:25,sampler:29,satelliteskycoord:20,set:29,sourc:18,submodul:[0,15],subpackag:0,tabl:25,trajectori:21,tutori:[28,29,30],uniformcausticsampl:22,util:23,veri:28,version:24,welcom:25}})
\ No newline at end of file
+Search.setIndex({docnames:["MulensModel","MulensModel.binarylens","MulensModel.binarylensimports","MulensModel.binarylenswithshear","MulensModel.caustics","MulensModel.causticswithshear","MulensModel.coordinates","MulensModel.event","MulensModel.fitdata","MulensModel.horizons","MulensModel.limbdarkeningcoeffs","MulensModel.magnificationcurve","MulensModel.model","MulensModel.modelparameters","MulensModel.mulensdata","MulensModel.mulensobjects","MulensModel.mulensobjects.lens","MulensModel.mulensobjects.mulenssystem","MulensModel.mulensobjects.source","MulensModel.pointlens","MulensModel.satelliteskycoord","MulensModel.trajectory","MulensModel.uniformcausticsampling","MulensModel.utils","MulensModel.version","index","install","modules","tutorial","tutorial_fit_pi_E","tutorial_fit_pspl"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":5,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.intersphinx":1,sphinx:56},filenames:["MulensModel.rst","MulensModel.binarylens.rst","MulensModel.binarylensimports.rst","MulensModel.binarylenswithshear.rst","MulensModel.caustics.rst","MulensModel.causticswithshear.rst","MulensModel.coordinates.rst","MulensModel.event.rst","MulensModel.fitdata.rst","MulensModel.horizons.rst","MulensModel.limbdarkeningcoeffs.rst","MulensModel.magnificationcurve.rst","MulensModel.model.rst","MulensModel.modelparameters.rst","MulensModel.mulensdata.rst","MulensModel.mulensobjects.rst","MulensModel.mulensobjects.lens.rst","MulensModel.mulensobjects.mulenssystem.rst","MulensModel.mulensobjects.source.rst","MulensModel.pointlens.rst","MulensModel.satelliteskycoord.rst","MulensModel.trajectory.rst","MulensModel.uniformcausticsampling.rst","MulensModel.utils.rst","MulensModel.version.rst","index.rst","install.rst","modules.rst","tutorial.rst","tutorial_fit_pi_E.rst","tutorial_fit_pspl.rst"],objects:{"":[[0,0,0,"-","MulensModel"]],"MulensModel.binarylens":[[1,1,1,"","BinaryLens"]],"MulensModel.binarylens.BinaryLens":[[1,2,1,"","adaptive_contouring_magnification"],[1,2,1,"","hexadecapole_magnification"],[1,2,1,"","point_source_magnification"],[1,2,1,"","vbbl_magnification"]],"MulensModel.binarylenswithshear":[[3,1,1,"","BinaryLensWithShear"]],"MulensModel.binarylenswithshear.BinaryLensWithShear":[[3,2,1,"","point_source_magnification"]],"MulensModel.caustics":[[4,1,1,"","Caustics"]],"MulensModel.caustics.Caustics":[[4,1,1,"","CriticalCurve"],[4,3,1,"","critical_curve"],[4,2,1,"","get_caustics"],[4,2,1,"","plot"]],"MulensModel.causticswithshear":[[5,1,1,"","CausticsWithShear"]],"MulensModel.coordinates":[[6,1,1,"","Coordinates"]],"MulensModel.coordinates.Coordinates":[[6,3,1,"","east_projected"],[6,3,1,"","ecliptic_lat"],[6,3,1,"","ecliptic_lon"],[6,3,1,"","galactic_b"],[6,3,1,"","galactic_l"],[6,3,1,"","north_projected"],[6,2,1,"","v_Earth_projected"]],"MulensModel.event":[[7,1,1,"","Event"]],"MulensModel.event.Event":[[7,3,1,"","best_chi2"],[7,3,1,"","best_chi2_parameters"],[7,3,1,"","blend_fluxes"],[7,2,1,"","calculate_chi2_gradient"],[7,3,1,"","chi2"],[7,3,1,"","chi2_gradient"],[7,3,1,"","coords"],[7,3,1,"","data_ref"],[7,3,1,"","datasets"],[7,2,1,"","fit_fluxes"],[7,3,1,"","fits"],[7,3,1,"","fluxes"],[7,2,1,"","get_chi2"],[7,2,1,"","get_chi2_for_dataset"],[7,2,1,"","get_chi2_gradient"],[7,2,1,"","get_chi2_per_point"],[7,2,1,"","get_flux_for_dataset"],[7,2,1,"","get_ref_fluxes"],[7,3,1,"","model"],[7,2,1,"","plot"],[7,2,1,"","plot_data"],[7,2,1,"","plot_model"],[7,2,1,"","plot_residuals"],[7,2,1,"","plot_source_for_datasets"],[7,2,1,"","plot_trajectory"],[7,2,1,"","reset_best_chi2"],[7,3,1,"","source_fluxes"],[7,3,1,"","sum_function"]],"MulensModel.fitdata":[[8,1,1,"","FitData"]],"MulensModel.fitdata.FitData":[[8,3,1,"","blend_flux"],[8,2,1,"","calculate_chi2_gradient"],[8,3,1,"","chi2"],[8,3,1,"","chi2_gradient"],[8,3,1,"","chi2_per_point"],[8,3,1,"","dataset"],[8,2,1,"","fit_fluxes"],[8,3,1,"","gamma"],[8,2,1,"","get_chi2_gradient"],[8,2,1,"","get_d_A_d_params_for_point_lens_model"],[8,2,1,"","get_d_A_d_u_for_point_lens_model"],[8,2,1,"","get_data_magnification"],[8,2,1,"","get_dataset_trajectory"],[8,2,1,"","get_model_fluxes"],[8,2,1,"","get_model_magnitudes"],[8,2,1,"","get_residuals"],[8,3,1,"","model"],[8,2,1,"","scale_fluxes"],[8,3,1,"","source_flux"],[8,3,1,"","source_flux_ratio"],[8,3,1,"","source_fluxes"],[8,2,1,"","update"]],"MulensModel.horizons":[[9,1,1,"","Horizons"]],"MulensModel.horizons.Horizons":[[9,3,1,"","time"],[9,3,1,"","xyz"]],"MulensModel.limbdarkeningcoeffs":[[10,1,1,"","LimbDarkeningCoeffs"]],"MulensModel.limbdarkeningcoeffs.LimbDarkeningCoeffs":[[10,2,1,"","get_limb_coeff_gamma"],[10,2,1,"","get_limb_coeff_u"],[10,2,1,"","get_weighted_limb_coeff_gamma"],[10,2,1,"","set_limb_coeff_gamma"],[10,2,1,"","set_limb_coeff_u"]],"MulensModel.magnificationcurve":[[11,1,1,"","MagnificationCurve"]],"MulensModel.magnificationcurve.MagnificationCurve":[[11,2,1,"","get_binary_lens_magnification"],[11,2,1,"","get_magnification"],[11,2,1,"","get_point_lens_magnification"],[11,2,1,"","set_magnification_methods"],[11,2,1,"","set_magnification_methods_parameters"]],"MulensModel.model":[[12,1,1,"","Model"]],"MulensModel.model.Model":[[12,3,1,"","bandpasses"],[12,3,1,"","caustics"],[12,3,1,"","coords"],[12,3,1,"","data_magnification"],[12,3,1,"","datasets"],[12,2,1,"","get_data_magnification"],[12,2,1,"","get_lc"],[12,2,1,"","get_limb_coeff_gamma"],[12,2,1,"","get_limb_coeff_u"],[12,2,1,"","get_magnification"],[12,2,1,"","get_parallax"],[12,2,1,"","get_ref_fluxes"],[12,2,1,"","get_residuals"],[12,2,1,"","get_satellite_coords"],[12,2,1,"","get_trajectory"],[12,2,1,"","is_static"],[12,2,1,"","magnification"],[12,3,1,"","n_lenses"],[12,3,1,"","n_sources"],[12,2,1,"","parallax"],[12,3,1,"","parameters"],[12,2,1,"","plot_caustics"],[12,2,1,"","plot_data"],[12,2,1,"","plot_lc"],[12,2,1,"","plot_magnification"],[12,2,1,"","plot_residuals"],[12,2,1,"","plot_source"],[12,2,1,"","plot_source_for_datasets"],[12,2,1,"","plot_trajectory"],[12,2,1,"","reset_plot_properties"],[12,2,1,"","set_datasets"],[12,2,1,"","set_default_magnification_method"],[12,2,1,"","set_limb_coeff_gamma"],[12,2,1,"","set_limb_coeff_u"],[12,2,1,"","set_magnification_methods"],[12,2,1,"","set_magnification_methods_parameters"],[12,2,1,"","set_source_flux_ratio"],[12,2,1,"","set_source_flux_ratio_for_band"],[12,2,1,"","set_times"],[12,2,1,"","update_caustics"]],"MulensModel.modelparameters":[[13,1,1,"","ModelParameters"],[13,4,1,"","which_parameters"]],"MulensModel.modelparameters.ModelParameters":[[13,3,1,"","alpha"],[13,2,1,"","as_dict"],[13,3,1,"","convergence_K"],[13,3,1,"","dalpha_dt"],[13,3,1,"","ds_dt"],[13,3,1,"","gamma"],[13,3,1,"","gamma_parallel"],[13,3,1,"","gamma_perp"],[13,2,1,"","get_alpha"],[13,2,1,"","get_s"],[13,3,1,"","is_external_mass_sheet"],[13,2,1,"","is_finite_source"],[13,2,1,"","is_static"],[13,3,1,"","n_lenses"],[13,3,1,"","n_sources"],[13,3,1,"","pi_E"],[13,3,1,"","pi_E_E"],[13,3,1,"","pi_E_N"],[13,3,1,"","pi_E_mag"],[13,3,1,"","q"],[13,3,1,"","rho"],[13,3,1,"","rho_1"],[13,3,1,"","rho_2"],[13,3,1,"","s"],[13,3,1,"","shear_G"],[13,3,1,"","source_1_parameters"],[13,3,1,"","source_2_parameters"],[13,3,1,"","t_0"],[13,3,1,"","t_0_1"],[13,3,1,"","t_0_2"],[13,3,1,"","t_0_kep"],[13,3,1,"","t_0_par"],[13,3,1,"","t_E"],[13,3,1,"","t_caustic_in"],[13,3,1,"","t_caustic_out"],[13,3,1,"","t_eff"],[13,3,1,"","t_star"],[13,3,1,"","t_star_1"],[13,3,1,"","t_star_2"],[13,3,1,"","u_0"],[13,3,1,"","u_0_1"],[13,3,1,"","u_0_2"],[13,3,1,"","uniform_caustic_sampling"],[13,3,1,"","x_caustic_in"],[13,3,1,"","x_caustic_out"]],"MulensModel.mulensdata":[[14,1,1,"","MulensData"]],"MulensModel.mulensdata.MulensData":[[14,3,1,"","bad"],[14,3,1,"","bandpass"],[14,3,1,"","chi2_fmt"],[14,3,1,"","coords"],[14,2,1,"","data_and_err_in_chi2_fmt"],[14,2,1,"","data_and_err_in_input_fmt"],[14,3,1,"","ephemerides_file"],[14,3,1,"","err_flux"],[14,3,1,"","err_mag"],[14,3,1,"","flux"],[14,3,1,"","good"],[14,3,1,"","input_fmt"],[14,3,1,"","mag"],[14,3,1,"","n_epochs"],[14,2,1,"","plot"],[14,3,1,"","satellite_skycoord"],[14,2,1,"","set_limb_darkening_weights"],[14,3,1,"","time"]],"MulensModel.mulensobjects":[[16,0,0,"-","lens"],[17,0,0,"-","mulenssystem"],[18,0,0,"-","source"]],"MulensModel.mulensobjects.lens":[[16,1,1,"","Lens"]],"MulensModel.mulensobjects.lens.Lens":[[16,3,1,"","a_proj"],[16,3,1,"","caustics"],[16,3,1,"","distance"],[16,3,1,"","epsilon"],[16,3,1,"","mass"],[16,3,1,"","mass_1"],[16,3,1,"","mass_2"],[16,3,1,"","mass_3"],[16,3,1,"","n_masses"],[16,3,1,"","pi_L"],[16,2,1,"","plot_caustics"],[16,3,1,"","q"],[16,3,1,"","s"],[16,3,1,"","total_mass"]],"MulensModel.mulensobjects.mulenssystem":[[17,1,1,"","MulensSystem"]],"MulensModel.mulensobjects.mulenssystem.MulensSystem":[[17,3,1,"","lens"],[17,3,1,"","mu_rel"],[17,3,1,"","pi_E"],[17,3,1,"","pi_rel"],[17,2,1,"","plot_caustics"],[17,2,1,"","plot_magnification"],[17,3,1,"","r_E"],[17,3,1,"","r_E_tilde"],[17,3,1,"","source"],[17,3,1,"","t_E"],[17,3,1,"","theta_E"]],"MulensModel.mulensobjects.source":[[18,1,1,"","Source"]],"MulensModel.mulensobjects.source.Source":[[18,3,1,"","angular_radius"],[18,3,1,"","distance"],[18,3,1,"","pi_S"]],"MulensModel.pointlens":[[19,1,1,"","PointLens"],[19,4,1,"","get_pspl_magnification"]],"MulensModel.pointlens.PointLens":[[19,2,1,"","get_point_lens_LD_integrated_magnification"],[19,2,1,"","get_point_lens_finite_source_magnification"],[19,2,1,"","get_point_lens_large_LD_integrated_magnification"],[19,2,1,"","get_point_lens_large_finite_source_magnification"],[19,2,1,"","get_point_lens_limb_darkening_magnification"],[19,2,1,"","get_point_lens_uniform_integrated_magnification"]],"MulensModel.satelliteskycoord":[[20,1,1,"","SatelliteSkyCoord"]],"MulensModel.satelliteskycoord.SatelliteSkyCoord":[[20,2,1,"","get_satellite_coords"]],"MulensModel.trajectory":[[21,1,1,"","Trajectory"]],"MulensModel.trajectory.Trajectory":[[21,2,1,"","get_xy"],[21,3,1,"","parallax_delta_N_E"],[21,3,1,"","x"],[21,3,1,"","y"]],"MulensModel.uniformcausticsampling":[[22,1,1,"","UniformCausticSampling"]],"MulensModel.uniformcausticsampling.UniformCausticSampling":[[22,2,1,"","caustic_point"],[22,2,1,"","check_valid_trajectory"],[22,2,1,"","get_standard_parameters"],[22,2,1,"","get_uniform_sampling"],[22,2,1,"","get_x_in_x_out"],[22,2,1,"","jacobian"],[22,3,1,"","n_caustics"],[22,3,1,"","q"],[22,3,1,"","s"],[22,2,1,"","which_caustic"]],"MulensModel.utils":[[23,1,1,"","PlotUtils"],[23,1,1,"","Utils"]],"MulensModel.utils.PlotUtils":[[23,2,1,"","find_subtract"],[23,2,1,"","find_subtract_xlabel"],[23,2,1,"","get_color_differences"],[23,2,1,"","get_y_value_y_err"]],"MulensModel.utils.Utils":[[23,2,1,"","astropy_version_check"],[23,2,1,"","complex_fsum"],[23,2,1,"","date_change"],[23,2,1,"","dot"],[23,2,1,"","gamma_to_u"],[23,2,1,"","get_flux_and_err_from_mag"],[23,2,1,"","get_flux_from_mag"],[23,2,1,"","get_mag_and_err_from_flux"],[23,2,1,"","get_mag_from_flux"],[23,2,1,"","get_n_caustics"],[23,2,1,"","u_to_gamma"],[23,2,1,"","vector_product_normalized"],[23,2,1,"","velocity_of_Earth"]],MulensModel:[[1,0,0,"-","binarylens"],[2,0,0,"-","binarylensimports"],[3,0,0,"-","binarylenswithshear"],[4,0,0,"-","caustics"],[5,0,0,"-","causticswithshear"],[6,0,0,"-","coordinates"],[7,0,0,"-","event"],[8,0,0,"-","fitdata"],[9,0,0,"-","horizons"],[10,0,0,"-","limbdarkeningcoeffs"],[11,0,0,"-","magnificationcurve"],[12,0,0,"-","model"],[13,0,0,"-","modelparameters"],[14,0,0,"-","mulensdata"],[15,0,0,"-","mulensobjects"],[19,0,0,"-","pointlens"],[20,0,0,"-","satelliteskycoord"],[21,0,0,"-","trajectory"],[22,0,0,"-","uniformcausticsampling"],[23,0,0,"-","utils"],[24,0,0,"-","version"]]},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"],"3":["py","property","Python property"],"4":["py","function","Python function"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method","3":"py:property","4":"py:function"},terms:{"0":[1,3,5,7,8,11,12,13,16,19,21,22,23,26,28,29,30],"00":[6,7,23],"000":6,"00096":28,"001":[1,29],"0039":28,"005":[11,12],"01":29,"04":29,"06":28,"086":29,"0j":5,"1":[1,3,4,5,8,10,11,12,13,14,16,19,21,22,23,26,28,29,30],"10":[7,11,22,23,29],"100":[11,29],"1000":12,"10000":22,"102":29,"1025":29,"11":29,"110":29,"1103":29,"12":23,"120":28,"120755":29,"133":28,"139":[11,19],"15":[11,12,29],"150":29,"1593":[1,11,23],"16":[28,29],"1679":[1,11],"17":26,"18":[6,7,29],"180":[6,13,21],"18h00m00":6,"19":28,"1994":[11,19],"2":[4,5,7,8,10,12,13,14,16,22,23,28,29,30],"20":30,"200":[11,19,22],"2002":10,"2003":[19,28],"2004":[11,19,28],"2005":29,"2007":[1,11],"2008":[1,11,13,22,23],"2009":[11,19,22],"2010":[1,11,22],"2011":[13,21],"2012":22,"2015":[23,29],"2018":[11,19],"2022":3,"21":29,"2188":[1,11],"218982":29,"22":[12,23],"2228":22,"223":28,"23":22,"235":28,"24":3,"245":23,"2450000":[7,12,13,14,23,29],"2452810":28,"2452833":28,"2452845":28,"2452848":28,"2452890":28,"2453200":29,"2453628":29,"2453630":29,"2453950":29,"2455746":[11,12],"2455747":[11,12],"2455748":[11,12],"2456789":12,"246":23,"2460000":[7,12,14,23],"25":28,"26":29,"262":19,"27":22,"270":6,"2719":29,"2810":28,"2890":28,"29062":29,"2972":29,"2f":30,"3":[8,10,12,13,22,23,29],"30":[6,7,23,29],"30d00m00":6,"3291":29,"3400":29,"35":13,"35507":29,"360":6,"37":29,"37263":29,"377":[1,11],"3800":29,"387105":29,"395":22,"3d":23,"3f":30,"4":[1,11,22],"40":29,"400":29,"408":[1,11],"41":29,"415677":29,"421l":[11,19],"426":22,"430":[11,19],"44":29,"45":29,"479":[11,19],"488817":29,"491":22,"4f":30,"5":[10,12,14,19,26,28,29,30],"50":29,"500":29,"5000":[4,12,16,17],"505":[11,19],"515":22,"5157":[11,19],"52":22,"521":10,"53":28,"5380":30,"572":10,"587":22,"59":29,"5f":[29,30],"5th":[1,3],"6":[11,12,22,28,29],"603":[11,19],"61":28,"611301":29,"6700":29,"67778":29,"681":[1,11,23],"695":[11,19],"7":[11,12,22,29],"71":[11,19,29],"738":13,"787":22,"8":[28,30],"84":29,"87":13,"927":3,"93":29,"947":29,"949":29,"95":29,"9th":3,"boolean":[1,7,8,12,13,14,19,21],"case":[6,10,12,13,14,16,22,29,30],"class":[1,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23,25,28,30],"default":[1,4,6,7,8,11,12,13,14,21,22,23,28],"do":[1,3,7,12,13,22,28,29],"export":26,"final":[1,30],"float":[1,3,4,5,6,7,8,10,11,12,13,14,16,17,18,19,20,21,22,23,29,30],"function":[1,7,8,11,12,13,14,16,21,22,23,25,29,30],"import":[6,7,9,12,22,28],"int":[4,7,12,13,14,16,17,22,23],"long":[14,29],"public":19,"return":[1,3,4,6,7,8,9,10,11,12,13,14,19,20,22,23,25,29,30],"static":[7,13,23],"true":[1,3,7,8,11,12,13,14,21,22,28,29],"try":[29,30],A:[6,8,10,12,13,14,16,17,19,21,22,23,30],And:[28,29],As:[1,29],At:29,Be:19,But:29,For:[1,7,8,9,11,12,13,19,21,22,25,28],IN:[],If:[1,3,6,7,8,11,12,13,14,16,17,18,19,23,26,28,29,30],In:[6,7,12,13,22,26,30],Is:23,It:[1,7,10,12,13,17,21,28,29],Its:30,NOT:28,No:8,Not:[12,16],ON:12,ONE:12,Or:28,That:25,The:[1,3,4,7,8,10,11,12,13,14,16,17,18,19,21,22,23,28,29,30],Then:[12,13,28,29,30],There:7,These:7,To:[4,8,12,13,22,26,30],Will:[7,14],__future__:28,__init__:14,_lens_:11,_not_:19,_point_:11,a_proj:16,abil:30,about:[12,29,30],abov:[7,8,22,26,30],acc:1,accept:[4,7,8,12,14],access:[7,13],accord:[13,22],account:[12,21],accur:[7,23],accuraci:[1,11,12],across:14,actual:16,ad:[7,16,28],adapt:1,adaptive_contour:11,adaptive_contouring_magnif:[1,11],adaptivecontour:[1,11,26],add:[1,14,26],add_2450000:[14,29],add_2460000:14,addit:[11,12],addition:29,adequ:12,advanc:[1,22],advis:28,advoc:13,affect:[1,12,21],after:[8,16],al:[3,10,11,13,19,21,22,23,28,29],algorithm:[1,22,23,29],all:[7,8,12,14,16,21,22,25,26,28,30],all_approxim:1,allow:[7,8,11,12,13,30],almost:14,along:[4,12],alpha:[12,13,14,17,21,22,28,29],alpha_list:12,alreadi:7,also:[1,7,8,12,14,17,19,22,28,29],altern:[12,22],alwai:[4,5,13,14,17],amplitud:30,an:[6,7,8,9,10,12,13,16,20,22,23,25,29,30],analysi:22,analyz:12,angl:[6,12,13,22],angular:[17,18],angular_radiu:18,ani:12,annual:29,annuli:[11,19],anyth:8,apj:[1,3,10,11,13,19,23],appendix:21,appli:[8,12,22,30],applic:[1,7,8],approach:[19,29],appropri:[7,12,14],approxim:[1,11,19,30],ar:[1,3,4,6,7,8,11,12,13,14,16,17,18,19,21,22,23,25,26,28,29,30],arbitrari:[8,25],archiv:[26,28],area:1,aren:14,arg:[6,12,13,29,30],argument:[7,8,9,11,12,13,16,17,19,21,22,23,30],around:[29,30],arrai:[6,7,8,16,19],arrow:12,arrow_kwarg:12,as_dict:13,associ:30,assum:[7,11,12,13,14,16,17,18,19,21],astropi:[6,7,9,11,12,13,14,16,17,18,20,21,23,26],astropy_version_check:23,attach:12,attr:[7,8],attribut:[1,3,4,5,7,11,12,13,18,19,20,21,30],au:[16,17],author:[14,26],avail:[11,28],axi:[1,3,4,7,12,13,14,22,23,29,30],b:29,back:29,background:18,bad:[7,8,12,14],band:[7,10,12,14],bandpass:[8,10,12,14],barycentr:23,base:[1,3,4,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23,30],baselin:30,bash:26,bashrc:26,basic:[7,13],bayesian:22,becaus:[7,14,22,29],been:7,befor:[1,3,16,26],begin:[13,23,28],behavior:[7,12],below:[22,29],best:[8,12,13,25,28,29,30],best_chi2:[7,29],best_chi2_paramet:[7,29],better:[29,30],between:[1,3,4,5,8,11,12,13,16,17,22,23,29],bfg:30,binari:[1,3,7,8,11,12,13,21,22,23],binarylen:[0,3,27],binarylensimport:[0,27],binarylenswithshear:[0,27],bjd:14,bjd_tdb:14,black:[12,23,28,29],blend:[7,8,12],blend_flux:[7,8,12],blend_flux_0:8,blg234:29,blg:[19,28,29],bodi:[1,3,4,5,13,16,17,28],bond:28,bool:[7,8,12,13,22,23],both:[1,3,4,8,10,12,22,23,29],bottom:22,bozza:[1,11,19],bright:[14,29],brighter:30,burn:29,button:26,c:[19,22,26,30],caclul:7,calcul:[1,3,4,6,7,8,11,12,13,14,19,20,21,22,23,29,30],calculate_chi2_gradi:[7,8],call:[7,8,12,13,14,22,30],can:[1,7,8,10,11,12,13,14,19,22,25,26,28,29,30],cannot:13,cartesian:23,cartesianrepresent:[9,23],cassan:[13,22],caustic:[0,5,7,12,13,16,17,22,23,27],caustic_point:22,causticswithshear:[0,27],center:[1,3,4,10,13,21],central:22,cg:30,chain:29,chang:[7,8,12,13,14,22,23,30],check:[13,14,22,23,26,29],check_valid_trajectori:22,chi2:[7,8,14,25,28],chi2_fmt:[7,14],chi2_for_model:30,chi2_gradi:[7,8],chi2_initi:30,chi2_per_point:8,chi:[7,8,14,29,30],choic:30,choos:29,chosen:1,circl:12,circular:[11,12],cite:[3,22],clariti:29,clockwis:22,close:22,cobyla:30,code:[11,14,22,23,26,28,29,30],coeff:12,coeffici:[1,8,10,11,12,14,18,19,23],color:[12,14,22,23,28,29],color_differ:23,color_list:[12,23],colorbar:22,column:14,combin:[7,12,13,16,29,30],come:29,command:[12,26],comment:28,common:29,companion:16,compar:[11,12],complex128:22,complex:[1,3,13,22,23],complex_fsum:23,complic:22,compon:[6,8,13,16,21,22],comput:[8,11,19,29],condit:22,configur:22,congratul:[26,30],conniv:6,consid:[11,22],consist:[14,17],constraint:[12,30],contact:[14,26],contain:[7,14,30],content:27,contour:[1,11],contrari:[7,12],contribut:[7,8,10],control:[7,12],conveni:29,convent:[1,10,11,12,13,14,21,22,23],converg:[3,11,13],convergence_k:[3,5,13],convert:30,coord:[7,11,12,14,21,29],coordin:[0,1,3,4,7,11,12,13,14,16,20,21,22,27,29],correspond:[4,5,8,12,16,22,30],could:28,counter:22,counterclockwis:13,cover:14,cpp:26,creat:8,critic:4,critical_curv:4,criticalcurv:4,cross:[13,17,22],cshrc:26,cubic:20,current:[7,8,12,19,26,29],curv:[4,7,11,12,17,19,25,29],curvelinear:[13,22],d:[7,8],da:8,da_dparam:8,da_du:8,dai:[13,17,30],dalpha_dt:13,darken:[1,8,10,11,12,14,18,19,23],dash:29,dat:[20,29,30],data:[7,8,12,14,20,23,25,29],data_and_err_in_chi2_fmt:14,data_and_err_in_input_fmt:14,data_err:14,data_list:14,data_magnif:[8,12],data_num:7,data_path:[28,29,30],data_ref:[7,12],datapoint:8,dataset:[7,8,12,14,28,29,30],date:[11,12,14,23],date_chang:23,dec:[6,9,12,14],def:[29,30],default_method:11,defin:[1,3,4,6,7,8,12,13,14,16,21,22,26,30],definit:[16,21],deg:[6,13,21],degener:29,degre:[6,12,13,17,28],depend:[7,9,30],deprec:[7,8,12,14],deriv:[8,12],descript:[11,22,25],desir:8,detail:[7,12],determin:[1,8,12,28],dfm:29,dict:[7,8,10,11,12,13,14,21,22,29],dictionari:[10,11,12,13,14,21,22],didn:26,differ:[7,12,14,21,22,23,29,30],dimensionless:[17,21],direct:[12,19],directli:[11,12,13],directori:26,dispers:29,distanc:[9,16,18],distribut:22,doctr:[7,12],doe:[1,7,8,22,28,29],doesn:11,dominik:[1,11],don:[22,28,29],done:[14,29,30],dot:23,dot_product:23,doubl:[12,13,23],download:[26,28,29,30],dozen:30,draw:22,drawn:22,ds_dt:13,dt:12,du:8,due:12,dure:1,e9967a:23,e:[4,5,6,7,8,9,10,11,12,13,14,19,21,22,23,26,30],each:[7,8,10,12,14,16,19,21,22],earth:[6,12,23,29],earth_coord:21,earth_orbit:[11,12,21],easi:[19,29],easili:30,east:[6,13,21],east_project:6,eclipt:6,ecliptic_lat:6,ecliptic_lon:6,effect:[11,12,13,14,19,21,28,29],einstein:[1,3,4,5,13,16,17,19,22],either:[1,7,12,13,14,18,26],element:[8,12],ellips:12,els:[29,30],emce:29,en:23,enclos:1,encourag:30,enough:29,ensemblesampl:29,ensur:8,entranc:[13,22],enumer:[29,30],ephemeri:14,ephemerid:[9,11,12,14,20,21],ephemerides_fil:[8,12,14,20],ephemeris_fil:20,epoch:[6,7,11,12,13,14,20,21,22,23,29],epsilon:16,eq:22,equal:[4,12,13,17,22],equat:[1,3,11,19],err:14,err_flux:[8,14,23],err_mag:[14,23,30],error:[1,11,14],errorbar:[7,8,12,14,30],es:[7,8,12],estim:[1,30],et:[3,10,11,13,19,21,22,23,28,29],etc:[1,3,7,13,14],evalu:[8,14,22,30],even:8,evenli:12,event:[0,1,6,11,12,14,21,22,25,27,28,29,30],everi:[10,12,26,29],everyth:28,ew:29,exactli:12,exampl:[7,12,13,14,20,22,28,29,30],except:[12,21,22],exclud:14,execut:[1,8],exist:[7,22],exit:[13,22],exoplanet:28,expand:28,expect:12,explan:[7,12],explicitli:[12,13,28],extend:14,extern:[3,13],extract:26,f_blend:12,f_sourc:12,fals:[1,7,8,11,12,14,19,21,22,23],far:11,fast:19,favourit:30,featur:[12,28],few:30,fig:22,figur:[28,29,30],file:[9,11,12,14,20,21,23,26,29,30],file_nam:[9,14,28,29,30],fill:12,filter:10,find:[12,23,25,29],find_subtract:23,find_subtract_xlabel:23,fine:[22,29,30],finer:12,finit:[1,11,13,19,28],finite_source_ld_lee09:11,finite_source_ld_wittmao94:11,finite_source_ld_yoo04:11,finite_source_ld_yoo04_direct:11,finite_source_uniform_gould94:11,finite_source_uniform_gould94_direct:11,finite_source_uniform_lee09:11,finite_source_uniform_wittmao94:11,first:[7,10,12,23,28,30],fit:[7,8,12,13,14,22,25,28],fit_blend:[7,12],fit_flux:[7,8],fitdata:[0,7,27],fix:[7,8,10,12,13],fix_blend:7,fix_blend_flux:[7,8],fix_source_flux:[7,8],fix_source_flux_ratio:[7,8],flag:[7,14],flux:[7,8,10,12,14,23,28,30],flux_err:23,flux_ratio_constraint:12,flux_source_1:12,flux_source_2:12,flux_source_band_1:12,flux_source_band_2:12,fmt:[14,30],fold:22,follow:[21,23,28],form:[11,12,29],formal:19,format:[7,14,23,29,30],found:30,four:22,fpic:26,fraction:[1,3,4,5,13,16,17,19],frame:[9,23],free:8,frequent:[10,22],from:[6,7,8,9,11,12,14,19,20,21,22,23,26,28,29,30],fsbl:13,fspl:13,fsum:7,full:[23,29],full_bjd:[6,23],fulli:26,fun:30,further:29,g:[6,7,8,10,11,12,13,14,19,21,23,26,30],galact:6,galactic_b:6,galactic_l:6,gamma:[1,8,10,11,12,13,14,19,23],gamma_parallel:13,gamma_perp:13,gamma_to_u:23,gaussian:14,gave:7,gca:[4,12,30],gcc:26,gener:[11,21,23,25],get:[7,10,12,13,14,22,23,28,30],get_:13,get_alpha:13,get_binary_lens_magnif:11,get_caust:4,get_chi2:[7,28,29,30],get_chi2_for_dataset:7,get_chi2_gradi:[7,8],get_chi2_per_point:7,get_color_differ:23,get_d_a_d_params_for_point_lens_model:8,get_d_a_d_u_for_point_lens_model:8,get_data_magnif:[8,12],get_dataset_trajectori:8,get_flux_and_err_from_mag:23,get_flux_for_dataset:7,get_flux_from_mag:23,get_lc:12,get_limb_coeff_gamma:[8,10,12],get_limb_coeff_u:[10,12],get_mag_and_err_from_flux:23,get_mag_from_flux:23,get_magnif:[11,12],get_model_flux:8,get_model_magnitud:8,get_n_caust:23,get_parallax:12,get_point_lens_finite_source_magnif:19,get_point_lens_large_finite_source_magnif:19,get_point_lens_large_ld_integrated_magnif:19,get_point_lens_ld_integrated_magnif:19,get_point_lens_limb_darkening_magnif:19,get_point_lens_magnif:11,get_point_lens_uniform_integrated_magnif:19,get_pspl_magnif:19,get_ref_flux:[7,12],get_residu:[8,12],get_satellite_coord:[12,20],get_standard_paramet:22,get_trajectori:12,get_uniform_sampl:22,get_weighted_limb_coeff_gamma:10,get_x_in_x_out:22,get_xi:21,get_y_value_y_err:23,github:26,give:[4,7,8,10,12,13,14,20,30],given:[1,3,4,5,6,7,8,10,11,12,13,14,16,18,20,21,22,23,25,30],go:[12,22,26],goe:29,good:[8,14,28,30],got:29,gould:[1,11,19],gradient:[7,8],green:[1,26],ground:12,guarante:28,guess:30,h:19,ha:[7,8,10,12,13,17,21,22,29,30],had:28,hand:[1,3,22],handl:13,happen:12,have:[7,10,12,14,26,29,30],haven:[7,29],he:29,henc:[11,12,29,30],here:[12,19,22,29,30],hexadecapol:[1,11,12],hexadecapole_magnif:[1,11],high:12,higher:[1,3,21,29],hjd:[14,29],hold:9,home:26,hope:29,horizon:[0,20,27],hour:12,hourangl:6,how:[1,14,21,28,29,30],howev:22,http:[23,29],human:[7,12,14],i:[1,4,5,7,8,9,10,11,12,13,14,19,22,29,30],i_caust:22,id:29,ignor:[1,12],imag:[1,3,22],impact:[17,22,29,30],implement:[1,4,5,12,16,19],importantli:23,includ:[3,7,8,11,12,13,14,19,21,26,29,30],index:[7,12,25,29],index_dataset:7,indic:22,individu:8,inf:29,info:9,inform:[7,12,13,29,30],inherit:6,initi:30,initial_guess:30,input:[9,13,14,19,21,22,23,25],input_fmt:14,inspect:30,instal:[23,25],instanc:[7,12,13,14,21,30],instantan:[13,19],instead:[1,7,12,13,19,22,29],instruct:[9,14],integr:[1,11,19,22],intermedi:22,intern:[4,12,21,22],interpol:[11,14,19,20],interv:12,introduc:[10,23],invert:30,invert_yaxi:30,invok:26,io:29,is_external_mass_sheet:13,is_finite_sourc:13,is_stat:[12,13],isfinit:29,isinst:[29,30],isnan:29,iter:[11,23],its:[1,3,7,10,14],j:19,jacobian:[7,8,13,22],jd:30,join:[28,29,30],jpl:[9,20],julian:[11,12,23],jupyt:28,just:[7,12,20,26,30],k2_ephemeris_01:20,k:[7,8],kain:22,keep:[7,22],kei:[7,8,10,11,12,14,21,22,29,30],keyword:[4,6,7,8,12,14,16,17,19,20,22],km:[6,23],know:[1,3,28],kpc:[16,18],kwarg:[4,6,7,8,11,12,14,16,17],l:6,label:[14,29,30],label_list:12,larg:[7,11,19],larger:[4,12,14,19,22],last:[26,30],later:[19,23,29],latitud:6,latter:[7,29],ld_accuraci:1,learn:[29,30],least:[8,13],leav:28,lee:[11,19],left:[1,3,4],legend:[7,29,30],len:[0,1,3,4,7,8,11,12,13,15,17,19,21,22,23,28,29,30],length:[4,12,14,22,23],lens:[4,5,7,12,19,25],less:30,let:[29,30],librari:1,light:[7,11,12,19,25,29],like:[12,22],likelihood:[25,29],limb:[1,8,10,11,12,14,18,19,23],limb_darken:18,limbdarkeningcoeff:[0,12,14,18,19,27],limit:12,line:1,linear:[1,8,10],linestyl:28,linewidth:12,link:[7,12],linspac:22,list:[4,7,8,11,12,13,14,16,20,21,22,23,29,30],lm:26,ln_like:29,ln_like_:29,ln_prior:29,ln_prior_:29,ln_prob:29,load:14,loadtxt:14,loc:[29,30],logarithm:29,longer:[7,12],longitud:6,look:[12,29,30],lower:[1,3,22],ls:29,lstdc:26,lumin:[12,13],lw:29,m:1,m_1:16,m_i:16,ma:[17,18],macho:19,mag:[7,8,12,14,23,30],mag_zeropoint:12,magnif:[1,3,8,11,12,17,19,30],magnification_vector:12,magnificationcurv:[0,12,27],magnitud:[7,8,12,13,14,23,30],mai:[1,3,4,6,7,12,13,14,16,18,29,30],main:[13,25,28],make:[1,3,7,12,14,26,29],mani:13,mao:[11,19],mark:[7,12,14],marker:[7,12,14],marker_list:12,markers:14,martin:[1,11],mass:[1,3,4,5,13,16,17,19,21,22,23],mass_1:[1,3,16],mass_2:[1,3,16],mass_3:16,materi:30,math:7,matplotlib:[4,7,12,14,22,23,28,29,30],matter:14,mayb:12,mead:30,mean:[1,3,7,12,22,23],measur:[13,14],mention:[7,8],messag:30,method:[1,11,12,19,28,30],methods_paramet:[11,12],microarcsecond:18,microlens:[7,10,11,12,13,14,17,19,21,22,25,28],might:28,millarcsecond:18,milliarcsecond:[16,17,18],mind:22,minim:30,minimum:[13,22,23],miss:16,mitig:[4,12],mm:[28,29,30],mnra:[1,11,19,22],moa:28,moa_data:28,mode:29,model:[0,7,8,11,13,14,17,19,21,22,25,27,29],model_0:29,model_1:29,model_2:29,model_flux:8,model_mag:8,model_paramet:13,modelparamet:[0,11,12,17,19,21,22,25,27],modifi:29,modul:[25,27,29,30],month:23,more:[7,8,10,12,14,16,17,22,29,30],most:[6,12,13,14,23,28],motion:[12,13,17,19,29],mu:25,mu_rel:17,much:30,mulensdata:[0,7,8,11,12,25,27,28,29,30],mulensmodel:[26,28,29,30],mulensobject:[0,27],mulenssystem:[0,15],multi:13,multinest:29,multipl:[11,12,14,19],must:[7,8,12,13,14,17,22],my_1s2l_model:28,my_data:[7,29,30],my_ev:[28,29,30],my_friends_data:30,my_model:29,my_pspl_model:28,n:[21,22],n_burn:29,n_caustic:[22,23],n_dim:29,n_epoch:[12,14],n_lens:[12,13],n_mass:16,n_min_for_caust:22,n_point:[4,12,16,17,22],n_sourc:[8,12,13],n_step:29,n_walker:29,name:[8,9,10,11,12,20,29],nan:7,nasa:28,nbest:29,ndarrai:[7,8,9,11,12,13,14,16,19,20,21,22,23,30],ndim:30,ne:13,necessari:[14,26],need:[7,8,11,12,13,14,23,26,29,30],neg:[1,3,7,21,29],neither:1,nelder:30,net:21,next:30,nfev:30,nice:[12,29,30],nicer:14,non:29,none:[1,3,7,8,11,12,14,16,17,18,19,20,21,22,23],normal:[12,23],north:[6,13,21],north_project:6,note:[1,3,4,6,7,10,11,12,13,14,16,17,22,28,29,30],notebook:28,noth:12,now:[28,29,30],np:[6,7,8,9,11,12,13,14,16,19,20,21,22,23,29,30],number:[4,7,12,13,14,16,17,22,23,29],numer:19,numpi:[7,12,14,16,22,29,30],o:26,ob03235:28,ob03235_moa:28,ob03235_ogl:28,ob05086:29,ob08092:30,object:[1,3,4,6,7,8,9,10,11,12,13,14,16,17,18,19,20,21,22,23],observ:[17,29],observatori:12,obtain:11,obviou:22,obvious:29,oct:23,off:[12,29],offset:21,ogl:[19,28,29],ogle_data:28,ok:[29,30],onc:12,one:[7,8,12,13,17,29,30],ones:[7,23],onli:[4,5,7,8,12,13,14,16,17,19,22,29,30],onto:17,op:30,open:26,opposit:[13,14],optim:[7,22,28,30],option:[1,4,7,8,11,12,14,20,21],orbit:[12,13],order:[1,3,7,12,14,22,26,30],org:23,origin:[1,3,4,21],os:[28,29,30],other:[1,3,4,7,8,10,11,12,14,22,23,29,30],otherwis:[7,8,23],our:30,out:[23,29],out_text:23,outlin:4,output:[9,21,23,30],outsid:11,over:[7,12,14],overal:8,overestim:1,p:[22,29],packag:[19,23,25,26,27,29,30],paczynski:[11,19],page:[23,25,26],pair:[6,22],panel:22,paper:[1,22],parallax:[11,12,13,14,16,17,18,21,25],parallax_delta_n_:21,parallel:13,param:[13,29],paramet:[1,3,4,6,7,8,10,11,12,13,14,16,17,19,20,21,22,23,25,28,29],parameter:13,parameteris:22,parameters_to_fit:[29,30],pariti:[1,3],part:[8,23,26],partial:8,particular:[7,13],pass:[7,11,12,14,16,17,26,30],path:[14,20,26,28,29,30],pc:18,peak:30,peirson:3,per:22,percentil:29,perform:8,period:14,perpendicular:[13,23],phot_fmt:[7,8,14,23,28],phot_ob08092_o4:30,photometr:[8,14],photometri:[12,14],photometry_fil:[28,29,30],physic:[17,18],pi_:18,pi_e:[13,17,29],pi_e_:[7,8,13,29],pi_e_mag:13,pi_e_n:[7,8,13,29],pi_l:16,pi_rel:17,piec:[29,30],pip:26,place:23,plane:[4,6,17,21,23],planet:28,planetari:22,pleas:[3,26,28],plot:[4,7,8,12,14,16,17,22,23,28],plot_caust:[12,16,17],plot_data:[7,12,14,28,29,30],plot_lc:[7,12,14,29,30],plot_magnif:[12,17,28],plot_model:[7,28],plot_param:29,plot_properti:14,plot_residu:[7,12,14],plot_sourc:[7,12],plot_source_for_dataset:[7,12],plot_trajectori:[7,12],plotutil:23,plt:[4,12,22,28,29,30],point:[1,3,4,7,8,11,12,13,14,16,17,19,22,23,28,29,30],point_sourc:11,point_source_magnif:[1,3],point_source_point_len:11,pointlen:[0,27],pointlik:19,polynomi:[1,3],posit:[1,3,7,9,11,12,14,19,21,22,29],possibl:[1,3,4,12,13,14],powel:30,pre:11,preced:7,precis:19,prepar:9,prescript:11,present:[1,19,30],previou:[7,12],previous:[7,8,12],primari:[1,3,13,14,16],print:[7,12,13,28,29,30],print_funct:28,prior:29,probabl:29,problem:[14,26],procedur:30,produc:[8,22],product:23,profil:[1,26],project:[6,13,16,17,23],proper:[17,19],properti:[4,6,7,8,9,12,13,14,16,17,18,21,22,29],propos:19,provid:[1,7,12,14,19,22,29],psbl:13,pspl:[8,13,19],pspl_magnif:19,pspl_model:30,put:22,py:[7,8,12,26],pyplot:[4,12,14,16,17,22,23,28,29,30],python2:28,python3:28,python:[26,29],pythonpath:26,q:[1,3,4,5,13,16,21,22,23,28],quadrupol:[1,11,12],qualiti:12,quantiti:[13,16,17,18,23],quit:22,r:[26,29],r_e:17,r_e_tild:17,ra:[6,9,12,14],rad:13,radian:28,radiu:[1,12,13,17,18,19],rais:22,randn:29,random:29,randomli:22,rang:[7,11,12,14,22,28,29],rapper:26,rare:12,rate:13,ratio:[4,5,7,8,12,13,16,22,23,30],re:[1,3,8,26,28,29],read:[4,9,16,17],readi:29,real:22,recalcul:[7,8],recent:26,recommend:[1,3],rectilinear:29,red:[12,28,30],refer:[7,8,9,12,13,29],refit:8,regard:19,regardless:13,regress:12,reject:29,rel:[1,8,10,11,13,16,17,19,22,23,29],relat:[1,23,30],releas:26,relev:7,rememb:[7,10,12],remov:12,repeat:[22,26],report:[8,29],repositori:26,repr:29,repres:[6,23],represent:12,request:[1,6,7,8,12,23],requir:[7,8,14,21,22,26,30],rescal:8,reset:[7,12],reset_best_chi2:7,reset_plot_properti:12,reshap:29,residu:[7,8,12,14,29],reson:22,respect:[7,8,12,14],result:[1,7,28,29,30],result_fun:30,retriev:8,rho:[1,11,12,13,19,28],rho_1:13,rho_2:13,right:[1,3,22,26],ring:[1,3,4,5,13,16,17,22],rough:30,round:29,routin:[22,30],run:[7,8,22,26],run_mcmc:29,s:[1,3,4,5,6,12,13,16,17,19,22,23,26,28,29,30],sai:29,same:[7,11,12,14,19,22,23,30],sampl:[22,29],sample_file_01:14,satellit:[9,11,12,14,20,21],satellite_skycoord:[11,12,14,20,21],satelliteskycoord:[0,12,27],save:[8,14],scale:[4,7,8,12,14,16,23,28],scale_flux:8,scatter:[4,7,12,14,16,17,22],scheme:22,scipi:30,search:[25,29],sec:1,second:[23,29,30],secondari:[1,3,13,16],see:[1,7,8,9,11,12,13,14,16,17,19,20,21,22,25,28,29,30],seem:30,select:22,self:[7,12],separ:[1,3,4,5,7,8,11,12,13,16,19,22,23,29],sequenc:[1,30],set:[1,6,7,8,10,11,12,13,14,16,17,18,21,25,28,30],set_aspect:[4,12],set_dataset:[12,29,30],set_default_magnification_method:12,set_limb_coeff_gamma:[10,12],set_limb_coeff_u:[10,12],set_limb_darkening_weight:14,set_magnification_method:[11,12,28],set_magnification_methods_paramet:[11,12],set_source_flux_ratio:12,set_source_flux_ratio_for_band:12,set_tim:12,setattr:[13,29,30],setenv:26,setup:26,share:26,shear:[3,11,13],shear_g:[3,5,13],sheat:3,sheet:[3,13],shift:[13,21],should:[1,7,8,11,12,14,18,21,22,23,26,30],shouldn:14,show:[7,12,14,22,28,29,30],show_bad:[7,12,14],show_data:12,show_errorbar:[7,12,14],shown:[7,12],sigma:29,sign:13,signific:12,significantli:1,similar:[14,22,23,26,30],simpl:28,simpli:13,simplifi:19,simpson:1,sinc:28,singl:[7,8,12,16,23,29,30],size:[1,12,13,14,16,17,19,22,23],size_list:12,skip:26,skowron:[13,21],sky:[6,11,12,14,21,23],sky_coordin:6,skycoord:[6,7,11,12,14,20,21],slightli:[7,12,29,30],slow:[11,19],slower:[7,29],small:[1,19,23,29],smaller:[11,12,22],smallest:[7,30],smooth:22,so:[1,7,12,21,22,26,28,30],solar:16,solmass:[16,17],solut:[1,3,29],some:[1,3,7,22,25,28,29,30],someth:7,somewhat:28,sonam:26,sourc:[0,1,3,7,8,11,12,13,15,17,19,21,22,26,28,29,30],source_1_paramet:13,source_2_paramet:13,source_flux:[7,8,12],source_flux_0:8,source_flux_1:[8,12],source_flux_2:12,source_flux_ratio:[8,12],source_i:[1,3],source_x:[1,3],space:[7,8,10,12,14,22,23],special:14,specif:[12,13,22],specifi:[6,7,8,11,12,14,16,17,18,19,21,22,28,29,30],spheric:12,sphinx:[],spitzer_ephemeris_01:20,split:29,squar:[1,4,8,12],stabl:19,stamp:21,standard:[9,11,13,16,22],star:[17,18,19,29],starblg234:29,start:[1,3,7,12,22,28,29,30],start_1:29,startup:26,state:1,step:[26,29,30],still:30,stoke:11,stop:12,store:[4,12,16,30],str:[6,7,8,9,10,11,12,13,14,20,21,23,30],string:[7,14,23],structur:[4,5,12,17],studi:10,subdirectori:26,submodul:27,subpackag:[27,30],subtract:[7,12,14,23],subtract_2450000:[7,12,14,23,28,29],subtract_2460000:[7,12,14,23],success:[12,30],suitabl:[1,12],sum:[1,7,8,12,16,21,23],sum_funct:7,sun:[12,29],suppli:14,support:13,suppos:[23,28],suppress:14,sure:[1,3,7,12,14,26],symbol:[12,22],symmetr:22,system:[1,3,8,12,13,14,16,17,21],systemat:22,t:[7,11,14,22,26,28,29],t_0:[7,8,12,13,22,28,29,30],t_0_1:[12,13],t_0_2:[12,13],t_0_kep:[12,13],t_0_par:[6,13,29],t_1:29,t_2:29,t_caustic_in:[13,22],t_caustic_out:[13,22],t_e:[7,8,12,13,17,22,28,29,30],t_e_1:13,t_e_2:13,t_eff:[7,8,13],t_rang:[7,12,28],t_star:13,t_star_1:13,t_star_2:13,t_start:[12,29],t_stop:[12,29],tabl:11,take:[7,8,22,29],taken:[7,12,14,21],tbd:[14,16],tbl:28,tcsh:26,tdb:9,termin:26,tertiari:16,test:[1,26],text:23,th:[7,8],than:[1,3,8,10,11,12,14,16,17,22,29,30],thei:[7,8,11,12,14,22,29],them:[1,14,29,30],theorem:[1,11],theta:[29,30],theta_:[17,23],thi:[1,3,4,7,8,11,12,13,14,16,19,21,22,23,26,28,29,30],thing:[28,30],third:30,those:[7,12,28],three:[1,14,29],thu:22,time:[1,7,9,11,12,13,14,17,20,21,22,23,26,28,29,30],timescal:[13,29],titl:[7,29],tnc:30,togeth:[28,30],tolist:30,topocentr:[11,12,21],topolog:22,total:[1,3,8,10,14,16],total_mass:16,toward:6,trajectori:[0,7,8,11,12,13,14,19,22,27],transform:[12,23],translat:14,trend:29,tupl:[7,12],turn:[12,29,30],tutori:25,two:[1,3,4,8,12,13,22,28,29,30],txt:[26,28],type:[8,10,12,13,14,19,21,23,30],u:[1,6,10,11,12,18,19,23],u_0:[7,8,13,17,22,28,29,30],u_0_1:13,u_0_2:13,u_limb_darken:1,u_to_gamma:23,uncertainti:[1,8,14,23],under:22,underli:11,uniform:[11,19,22],uniform_caustic_sampl:13,uniformcausticsampl:[0,13,27],uniformli:22,unit:[6,12,13,14,16,17,18,26],unless:[12,14],unnorm:29,unpack:26,up:28,updat:[7,8,12,26],update_caust:12,upper:22,us:[1,3,4,7,8,10,11,12,13,14,16,17,19,20,21,22,23,26,28,29,30],usag:[13,14],user:12,user_nam:26,util:[0,12,27],v:[10,14],v_earth_perp_:6,v_earth_perp_n:6,v_earth_project:[6,23],val:29,valerio:[1,11],valid:13,valu:[1,6,7,8,10,11,12,13,14,16,18,19,21,22,23,25,29,30],valueerror:22,variat:1,vastli:1,vbbinarylens:[11,19],vbbinarylensinglibrari:26,vbbinarylensinglibrary_wrapp:26,vbbl:[1,11,12,26,28],vbbl_magnif:[1,11],vbbl_on:3,ve:26,vector:[4,11,12,13,14,21,23,29],vector_1:23,vector_2:23,vector_product_norm:23,veloc:[6,13,23],velocity_of_earth:23,veri:[1,11,12,19,22,23,29,30],version:[0,23,26,27],via:[12,30],visibl:14,visual:22,vs:14,wa:[7,8,12,19,29,30],wai:[12,22],walker:29,want:[7,8,12,14,16,23,28,29,30],we:[7,12,22,23,28,29,30],websit:[1,29],weight:[10,14],well:[8,11,12,19,29],were:[14,28],what:[1,3,11,21],when:[7,10,11,12,14,22],where:[6,12,22,30],whether:[7,8,12,13,14],which:[6,7,8,11,12,13,16,20,21,22,29,30],which_caust:22,which_paramet:13,wide:22,width:12,wiki:23,wikipedia:23,window:26,without:[8,11,12,14,16,29],witt:[11,19],wl:26,won:14,work:[11,14,19,22,26,28],would:[8,30],written:28,wrong:29,wyrzykowski:29,x0:30,x:[1,3,4,7,9,12,14,16,21,22,28,30],x_caustic:22,x_caustic_in:[13,22],x_caustic_out:[13,22],x_caustic_point:22,x_caustic_sep:22,xallarap:[12,13],xlabel:23,xlim:[28,29],xy:21,xyz:9,y:[1,3,4,9,16,21,22,23],year:[13,29],yerr:30,yet:[7,12,22,29],ylim:28,yoo:[11,19],you:[1,3,7,8,10,11,12,13,14,16,22,23,26,28,29,30],your:[22,26,28,30],yr:[13,17],z:9,zero:[7,22],zeropoint:23,zoom:[29,30],zorder:14,zorder_list:12},titles:["MulensModel package","MulensModel.binarylens module","MulensModel.binarylensimports module","MulensModel.binarylenswithshear module","MulensModel.caustics module","MulensModel.causticswithshear module","MulensModel.coordinates module","MulensModel.event module","MulensModel.fitdata module","MulensModel.horizons module","MulensModel.limbdarkeningcoeffs module","MulensModel.magnificationcurve module","MulensModel.model module","MulensModel.modelparameters module","MulensModel.mulensdata module","MulensModel.mulensobjects package","MulensModel.mulensobjects.lens module","MulensModel.mulensobjects.mulenssystem module","MulensModel.mulensobjects.source module","MulensModel.pointlens module","MulensModel.satelliteskycoord module","MulensModel.trajectory module","MulensModel.uniformcausticsampling module","MulensModel.utils module","MulensModel.version module","Welcome to MulensModel\u2019s documentation!","How to install?","MulensModel","Very Basic Tutorial","Microlensing Parallax Fitting Tutorial","Basic Fitting Tutorial"],titleterms:{"import":[29,30],basic:[28,30],binarylen:1,binarylensimport:2,binarylenswithshear:3,caustic:4,causticswithshear:5,combin:28,content:[0,15,25],coordin:6,data:[28,30],defin:28,document:25,event:7,exercis:[29,30],fit:[29,30],fitdata:8,horizon:9,how:26,indic:25,instal:26,introduc:28,len:16,limbdarkeningcoeff:10,magnificationcurv:11,microlens:29,model:[12,28,30],modelparamet:13,modul:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],mulensdata:14,mulensmodel:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,27],mulensobject:[15,16,17,18],mulenssystem:17,old:26,packag:[0,15],parallax:29,paramet:30,plot:[29,30],pointlen:19,prepar:30,run:29,s:25,sampler:29,satelliteskycoord:20,set:29,sourc:18,submodul:[0,15],subpackag:0,tabl:25,trajectori:21,tutori:[28,29,30],uniformcausticsampl:22,util:23,veri:28,version:24,welcom:25}})
\ No newline at end of file
diff --git a/docs/tutorial.html b/docs/tutorial.html
index cd5d4965..890b6e3a 100644
--- a/docs/tutorial.html
+++ b/docs/tutorial.html
@@ -6,7 +6,7 @@
- Very Basic Tutorial — MulensModel 2.8.2 documentation
+ Very Basic Tutorial — MulensModel 2.10.0 documentation
diff --git a/docs/tutorial_fit_pi_E.html b/docs/tutorial_fit_pi_E.html
index 1de51ac7..862dc34a 100644
--- a/docs/tutorial_fit_pi_E.html
+++ b/docs/tutorial_fit_pi_E.html
@@ -6,7 +6,7 @@
- Microlensing Parallax Fitting Tutorial — MulensModel 2.8.2 documentation
+ Microlensing Parallax Fitting Tutorial — MulensModel 2.10.0 documentation
diff --git a/docs/tutorial_fit_pspl.html b/docs/tutorial_fit_pspl.html
index 6c3ce013..89447e28 100644
--- a/docs/tutorial_fit_pspl.html
+++ b/docs/tutorial_fit_pspl.html
@@ -6,7 +6,7 @@
- Basic Fitting Tutorial — MulensModel 2.8.2 documentation
+ Basic Fitting Tutorial — MulensModel 2.10.0 documentation
diff --git a/source/MulensModel/event.py b/source/MulensModel/event.py
index 60f0b28e..df29ad35 100644
--- a/source/MulensModel/event.py
+++ b/source/MulensModel/event.py
@@ -586,7 +586,7 @@ def get_chi2_for_dataset(self, index_dataset, fit_blending=None):
return self.fits[index_dataset].chi2
- def get_chi2_per_point(self, fit_blending=None):
+ def get_chi2_per_point(self, fit_blending=None, bad=False):
"""
Calculates chi^2 for each data point of the current model by
fitting for source and blending fluxes.
@@ -594,6 +594,11 @@ def get_chi2_per_point(self, fit_blending=None):
Parameters :
fit_blending: DEPRECATED. use :py:attr:`~fix_blending` instead.
+ bad: *bool*
+ Should chi2 be also caclulated for points marked as bad in
+ MulensData? If `False` (default), then bad epochs have chi2 of
+ `np.nan`.
+
Returns :
chi2: *list* of *np.ndarray*
Chi^2 contribution from each data point,
@@ -613,12 +618,15 @@ def get_chi2_per_point(self, fit_blending=None):
if fit_blending is not None:
self._apply_fit_blending(fit_blending)
- self.fit_fluxes()
+ self.fit_fluxes(bad=bad)
# Calculate chi^2 given the fit
chi2_per_point = []
for (i, dataset) in enumerate(self.datasets):
- chi2_per_point.append(self.fits[i].chi2_per_point)
+ chi2 = self.fits[i].chi2_per_point
+ if not bad:
+ chi2[dataset.bad] = np.nan
+ chi2_per_point.append(chi2)
return chi2_per_point
diff --git a/source/MulensModel/tests/test_Event.py b/source/MulensModel/tests/test_Event.py
index c7d294f1..5680f9f5 100644
--- a/source/MulensModel/tests/test_Event.py
+++ b/source/MulensModel/tests/test_Event.py
@@ -1,9 +1,7 @@
-import sys
from os.path import join
import unittest
import numpy as np
from astropy import units as u
-import matplotlib.pyplot as plt
import MulensModel as mm
@@ -269,11 +267,11 @@ def test_event_get_chi2_5():
class TestEvent(unittest.TestCase):
def test_event_init_1(self):
with self.assertRaises(TypeError):
- ev = mm.Event(model=3.14)
+ _ = mm.Event(model=3.14)
def test_event_init_2(self):
with self.assertRaises(TypeError):
- ev = mm.Event(datasets='some_string')
+ _ = mm.Event(datasets='some_string')
class Chi2GradientTest():
@@ -654,13 +652,36 @@ def test_get_chi2_per_point():
n = 100
data_2.flux[n] += data_2.err_flux[n]
data_2.flux[n + 1] -= data_2.err_flux[n + 1]
- chi2_exp = np.zeros(len(data_2.time))
- chi2_exp[n:n + 2] = 1.
+ chi2_exp_2 = np.zeros(len(data_2.time))
+ chi2_exp_2[n:n + 2] = 1.
# Create event and perform test
event = mm.Event([data_1, data_2], model)
np.testing.assert_almost_equal(
- event.get_chi2_per_point()[1], chi2_exp, decimal=6)
+ event.get_chi2_per_point()[1], chi2_exp_2, decimal=6)
+ np.testing.assert_almost_equal(
+ event.get_chi2_per_point(bad=True)[1], chi2_exp_2, decimal=6)
+
+ # Make tests for when bad data are present:
+ bad_1 = data_1.bad.copy()
+ bad_1[n] = True
+ data_1.bad = bad_1
+ bad_2 = data_2.bad.copy()
+ bad_2[n] = True
+ data_2.bad = bad_2
+ chi2_exp_2_sumA = 0.99799855
+ chi2_exp_2_sumB = 2.00200630
+
+ chi2_per_point = event.get_chi2_per_point()
+ assert np.isnan(np.sum(chi2_per_point[0]))
+ np.testing.assert_almost_equal(np.nansum(chi2_per_point[0]), 0.)
+ assert np.isnan(np.sum(chi2_per_point[1]))
+ np.testing.assert_almost_equal(
+ np.nansum(chi2_per_point[1]), chi2_exp_2_sumA)
+
+ chi2_per_point = event.get_chi2_per_point(bad=True)
+ np.testing.assert_almost_equal(np.sum(chi2_per_point[0]), 0.)
+ np.testing.assert_almost_equal(np.sum(chi2_per_point[1]), chi2_exp_2_sumB)
class TestFixedFluxes(unittest.TestCase):
@@ -819,14 +840,13 @@ def setUp(self):
self.gamma = {'I': 0.44, 'V': 0.72}
# Model based on binary source
+ t_0_2 = 8001.
self.model = mm.Model(
- {'t_0_1': 8000., 'u_0_1': 0.3, 't_0_2': 8001., 'u_0_2': 0.001,
+ {'t_0_1': 8000., 'u_0_1': 0.3, 't_0_2': t_0_2, 'u_0_2': 0.001,
't_E': 25., 'rho_2': 0.002})
- n_tstar = 3
- t_1 = self.model.parameters.t_0_2 - 3 * self.model.parameters.t_star_2
- t_2 = self.model.parameters.t_0_2 + 3 * self.model.parameters.t_star_2
+ d_t = 3. * self.model.parameters.t_star_2
self.model.set_magnification_methods(
- [t_1, 'finite_source_LD_Yoo04', t_2], source=2)
+ [t_0_2 - d_t, 'finite_source_LD_Yoo04', t_0_2 + d_t], source=2)
self.model.set_limb_coeff_gamma('I', self.gamma['I'])
self.model.set_limb_coeff_gamma('V', self.gamma['V'])
diff --git a/source/MulensModel/version.py b/source/MulensModel/version.py
index dba9ee56..1c622223 100644
--- a/source/MulensModel/version.py
+++ b/source/MulensModel/version.py
@@ -1 +1 @@
-__version__ = "2.9.4"
+__version__ = "2.10.0"