Skip to content

Commit

Permalink
merging new_fit branch - v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed Sep 10, 2021
2 parents ce60dde + 373505c commit 3bc3571
Show file tree
Hide file tree
Showing 238 changed files with 29,295 additions and 2,834 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ VBBinaryLensingLibrary_wrapper.so
source/AdaptiveContouring/*.o
source/AdaptiveContouring/*.so

# additional code in example_16/
examples/example_16/corner.py

# Sphinx files
*.doctree
docs/_sources/
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[**Detailed documentation: https://rpoleski.github.io/MulensModel/**](https://rpoleski.github.io/MulensModel/)

[Latest release: 1.17.2](https://github.com/rpoleski/MulensModel/releases/latest) and we're working on further developing the code.
[Latest release: 2.0.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.

Expand Down Expand Up @@ -45,5 +45,5 @@ Alternatively, you can run makefiles: go to `source/VBBL/` and run `make`, then
---
[![astropy](http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat)](http://www.astropy.org/)

file revised Oct 2020
file revised Aug 2021

2 changes: 1 addition & 1 deletion data/photometry_files/KB180003/00README.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
These datasets have been modified from the public online KMT
data. They are truncated at HJD 2458210. to support the example in
use_case_32_fix_blending.py
use_case_34_fix_blending.py
10 changes: 5 additions & 5 deletions data/photometry_files/KB180003/KMTA12_I.pysis
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
8176.19064 -612.5483 256.0534 19.6452 0.134512
8177.18745 -791.1303 278.7444 19.5604 0.135486
8177.18934 -628.2445 251.9303 19.6375 0.131212
8177.23803 -524033.7371 641208.1339 nan nan
#8177.23803 -524033.7371 641208.1339 nan nan
8178.18820 -495.7178 238.5896 19.7045 0.132241
8178.21120 -531.4036 210.0963 19.6861 0.113520
8179.18080 -9917.4566 440.1944 17.8480 0.042367
Expand Down Expand Up @@ -106,7 +106,7 @@
8245.00697 249.2171 196.8425 20.1857 0.173102
8245.00831 127.1369 197.0802 20.0908 0.157704
8245.09759 -1572.2028 260.4464 19.2518 0.093480
8246.00534 -5372.2369 7639.4390 nan nan
#8246.00534 -5372.2369 7639.4390 nan nan
8246.00671 -1453.4051 562.6914 19.2934 0.222372
8246.06221 -1.2911 160.9814 19.9991 0.116192
8247.26492 15.3072 160.7184 20.0105 0.117287
Expand Down Expand Up @@ -196,7 +196,7 @@
8288.90988 -207.6110 222.8618 19.8663 0.144149
8289.08348 -775.7854 408.6993 19.5674 0.206404
8289.93283 -66.2395 239.1099 19.9555 0.169851
8290.09071 950.5163 1360.9201 nan nan
#8290.09071 950.5163 1360.9201 nan nan
8290.89904 -677.1727 246.1077 19.6137 0.125059
8291.02215 -40.6910 176.0092 19.9725 0.124422
8291.89752 200.9105 207.0218 20.1472 0.175922
Expand All @@ -211,12 +211,12 @@
8295.02510 103.4290 267.6682 20.0733 0.216364
8295.21498 -652.5859 542.8505 19.6256 0.301711
8295.87501 44.3151 652.4553 20.0308 0.598027
8296.06682 1192.8610 779.4899 nan nan
#8296.06682 1192.8610 779.4899 nan nan
8299.85799 723.2023 283.3266 20.6616 0.432875
8299.85954 -491.1828 246.9213 19.7069 0.137482
8299.86106 -867.0635 253.5820 19.5262 0.118528
8300.04729 -509.3274 377.9659 19.6974 0.216102
8300.85742 1106.7523 1649.9265 nan nan
#8300.85742 1106.7523 1649.9265 nan nan
8301.04647 464.6696 229.8030 20.3767 0.249274
8302.08366 -1278.7876 236.2586 19.3577 0.093487
8302.12462 44.0328 208.0312 20.0306 0.157472
Expand Down
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -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: 91416e407b7d5b5c6d2cca68a981432b
config: 966a4d38055b40c0f3363ddf416e532a
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/index.doctree
Binary file not shown.
Binary file modified docs/.doctrees/modules.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/MulensModel.binarylens.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MulensModel.binarylens module &#8212; MulensModel 1.17.1 documentation</title>
<title>MulensModel.binarylens module &#8212; MulensModel 2.0.0 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -37,7 +37,7 @@
<dl class="py class">
<dt id="MulensModel.binarylens.BinaryLens">
<em class="property">class </em><code class="sig-prename descclassname">MulensModel.binarylens.</code><code class="sig-name descname">BinaryLens</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">mass_1</span><span class="o">=</span><span class="default_value">None</span></em>, <em class="sig-param"><span class="n">mass_2</span><span class="o">=</span><span class="default_value">None</span></em>, <em class="sig-param"><span class="n">separation</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#MulensModel.binarylens.BinaryLens" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.8)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<p>The binary lens equation - its solutions, images, parities,
magnifications, etc.</p>
<p>The binary lens equation is a 5th order complex polynomial.</p>
Expand Down
6 changes: 3 additions & 3 deletions docs/MulensModel.caustics.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MulensModel.caustics module &#8212; MulensModel 1.17.1 documentation</title>
<title>MulensModel.caustics module &#8212; MulensModel 2.0.0 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down Expand Up @@ -37,7 +37,7 @@
<dl class="py class">
<dt id="MulensModel.caustics.Caustics">
<em class="property">class </em><code class="sig-prename descclassname">MulensModel.caustics.</code><code class="sig-name descname">Caustics</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">q</span></em>, <em class="sig-param"><span class="n">s</span></em><span class="sig-paren">)</span><a class="headerlink" href="#MulensModel.caustics.Caustics" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.8)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<p>Class for the caustic structure corresponding to a given (<em>q</em>, <em>s</em>),
i.e. mass ratio and separation. Implemented for 2-body lenses only.</p>
<dl class="simple">
Expand Down Expand Up @@ -100,7 +100,7 @@
<dl class="py class">
<dt id="MulensModel.caustics.Caustics.CriticalCurve">
<em class="property">class </em><code class="sig-name descname">CriticalCurve</code><a class="headerlink" href="#MulensModel.caustics.Caustics.CriticalCurve" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.8)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.9)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p>
<p>Internal class of <a class="reference internal" href="#MulensModel.caustics.Caustics" title="MulensModel.caustics.Caustics"><code class="xref py py-class docutils literal notranslate"><span class="pre">Caustics</span></code></a>. Defines the critical
curve (in the lens plane). Origin is center of mass with
larger mass on the left (<em>q</em> &lt; 1).</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/MulensModel.coordinates.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MulensModel.coordinates module &#8212; MulensModel 1.17.1 documentation</title>
<title>MulensModel.coordinates module &#8212; MulensModel 2.0.0 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
Expand Down
Loading

0 comments on commit 3bc3571

Please sign in to comment.