Skip to main content

RTModel is a tool for microlensing event interpretation.

Project description

RTModel

RTModel is a package for modeling and interpretation of microlensing events. It uses photometric time series collected from ground and/or space telescopes to propose one or more possible models among the following:

  • Single-lens-single-source microlensing (i.e. Paczynski)
  • Single-lens-binary-source microlensing (with or without xallarap)
  • Binary-lens-single-source microlensing (including planetary microlensing, parallax and orbital motion)

All models include the finite-size of the source(s).

The modeling strategy is based on a grid search in the parameter space for single-lens models, whereas a template library for binary-lens models is used including all possible geometries of the source trajectory with respect to the caustics. In addition to this global search, planets are searched where maximal deviations from a Paczynski model occurs.

The library is in the form of a standard Python package that launches specific subprocesses for different tasks. Model fitting is executed in parallel exploiting available processors in the machine. The full modeling may take from one to three hours depending on the event and on the machine speed. The results of modeling are given in the form of a text assessment file; in addition, final models are made available with their parameters and covariance matrices.

RTModel also includes a subpackage RTModel.plotmodel that allows an immediate visualization of models and the possibility to review each individual fitting process as an animated gif.

A second subpackage RTModel.templates helps the user in the visualization and customization of the template library.

Attribution

RTModel has been created by Valerio Bozza (University of Salerno) as a product of many years of direct experience on microlensing modeling (see RTModel webpage).

Any scientific use of RTModel should be acknowledged by citing the paper V.Bozza, A&A 688 (2024) 83, describing all the algorithms behind the code.

We are grateful to Greg Olmschenk, who revised the package installation in order to make it as cross-platform as possible.

Installation

The easiest way to install RTModel is through pip.

First clone this repository.

Then go to the repository directory and type

pip install .

In alternative, you may directly install it from PyPI without cloning this repository:

pip install RTModel

Currently, RTModel works on Linux, Windows and MacOS, requiring Python >= 3.6. A C++ compiler compatible with C++17 standard is needed for installation. RTModel also incorporates version 4.1 of VBMicrolensing. You are encouraged to cite the relevant papers listed in that repository as well.

Documentation

Full documentation for the use of RTModel is available.

In the directory events we provide some microlensing data on which you may practise with RTModel.

A Jupyter notebook for quick start-up is also available in the jupyter folder.

License

RTModel is freely available to the community under the GNU Lesser General Public License Version 3 included in this repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtmodel-2.2.tar.gz (8.2 MB view details)

Uploaded Source

Built Distribution

rtmodel-2.2-cp311-cp311-win_amd64.whl (817.4 kB view details)

Uploaded CPython 3.11 Windows x86-64

File details

Details for the file rtmodel-2.2.tar.gz.

File metadata

  • Download URL: rtmodel-2.2.tar.gz
  • Upload date:
  • Size: 8.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for rtmodel-2.2.tar.gz
Algorithm Hash digest
SHA256 8f2dd774208ca9abbd715ad06b5586954b83882b257ba1991d8c4795c5341fbc
MD5 3d63286a564182901f2d31cd6d15b29d
BLAKE2b-256 a10bfbad4dcd3ea201bc26e3c5ed37ad2f36b53577a084283271f932b12e60b8

See more details on using hashes here.

File details

Details for the file rtmodel-2.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: rtmodel-2.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 817.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for rtmodel-2.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d8b979617334989908af650fdc14efcc5523d03b8e54c52d46839c9b39989fdd
MD5 9435a4e1cebbd466914de30e3542774b
BLAKE2b-256 d5cb63d36985f104d91ff03de46edd45525452a2644a0ee7e2399577de5b8224

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page