Skip to content

Commit

Permalink
version update
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoleski committed May 2, 2018
1 parent 4e5b22c commit 5d7d8b2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<dl>MulensModel is package for modeling microlensing (or &mu;-lensing)
events. </dl>

It is still under development. [Latest release: 1.1.0](https://github.com/rpoleski/MulensModel/releases/latest)
It is still under development. [Latest release: 1.2.0](https://github.com/rpoleski/MulensModel/releases/latest)

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
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
# built documents.
#
# The short X.Y version.
version = u'1.1'
version = u'1.2'
# The full version, including alpha/beta/rc tags.
release = u'1.1.0'
release = u'1.2.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ How to install?
3. Unpack the archive.
4. Add the path to the unpack directory to the ``PYTHONPATH``, e.g., if you've extracted the archive in your home directory (``/home/USER_NAME/``) in tcsh::

setenv PYTHONPATH /home/USER_NAME/MulensModel-1.1.0/source\:$PYTHONPATH
setenv PYTHONPATH /home/USER_NAME/MulensModel-1.2.0/source\:$PYTHONPATH

in bash::

export PYTHONPATH=/home/USER_NAME/MulensModel-1.1.0/source:$PYTHONPATH
export PYTHONPATH=/home/USER_NAME/MulensModel-1.2.0/source:$PYTHONPATH

In order to have this command invoked every time you open a terminal, please add this command to your startup file (``~/.cshrc``, ``~/.bashrc``, ``~/.profile``, or similar). If you didn't have ``PYTHONPATH`` defined before, then skip the last part of the above commands.

Expand Down
6 changes: 4 additions & 2 deletions source/MulensModel/tests/test_Event.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,15 @@ def test_event_chi2_gradient():
test_1 = (parameters_1, params_1, gradient_1)

parameters_2 = {'t_0': 2456836.22, 'u_0': 0.922, 't_E': 22.87,
'pi_E_N': -0.248, 'pi_E_E': 0.234}
'pi_E_N': -0.248, 'pi_E_E': 0.234} # This model also
# used fluxes given above.
params_2 = ['t_0', 'u_0', 't_E', 'pi_E_N', 'pi_E_E', 'f_source', 'f_blend']
gradient_2 = {'t_0': 568.781786, 'u_0': 65235.3513, 't_E': -491.782005,
'pi_E_N': -187878.357, 'pi_E_E': 129162.927,
'f_source': -83124.5869, 'f_blend': -78653.242}
test_2 = (parameters_2, params_2, gradient_2)
# We're not applying the test above, yet. See 'for' loop below.

data = MulensData(file_name=SAMPLE_FILE_02)
kwargs = {'datasets': [data], 'coords': '17:47:12.25 −21:22:58.7'}

Expand All @@ -213,3 +214,4 @@ def test_event_chi2_gradient():

reference = np.array([gradient[key] for key in params])
np.testing.assert_almost_equal(reference/result, 1., decimal=1)

2 changes: 1 addition & 1 deletion source/MulensModel/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

__version__ = "1.1.0"
__version__ = "1.2.0"

0 comments on commit 5d7d8b2

Please sign in to comment.