Skip to main content

Microlensing Single Lens Classification – Atousa Kalantari & Somayeh Khakpash

Project description

Microlensify

Microlensify is a Physics-Informed Transformer-Based Variational Autoencode that detects single lens microlensing events in light curves. It works with light curves from any telescope, either via URLs (e.g., MAST FITS files) or your own data files.

Microlensify splits your light curve into chunks and downsamples them to a fixed length for prediction. Predictions are made for each chunk individually and also for the whole light curve.


Installation

pip install Microlensify

Usage

Microlensify <input_file> <compute_stats> <n_cores>

Arguments

<input_file>

  • URL input: a file containing URLs of light curves and their flux & time column names.
  • Local files: a file containing paths to your files and their flux & time column names.

<compute_stats>

  • yes — compute flux statistics (min, max, median, std, std/(max-min)) from raw flux.
  • no — flux is already normalized (like TESS QLP pipeline flux), so the model uses fixed values from the training set for these statistics.

<n_cores>

  • Number of CPU cores to use for parallel processing.

Input File Format

  • Tab-separated file.

  • Column 1: time

  • Column 2: flux

  • URL input: list the URLs and the flux/time column names.

  • Local files: list file paths and the flux/time column names.

  • Example input files are provided in the Microlensify_Input_Examples folder.

Output

All results are saved to prediction_results.csv with the following columns:

Column Description
Source URL or file path of the light curve
Class 1 if probability > 0.99, else 0
Probability Model probability of microlensing
Real_4FWHM_days Predicted 4FWHM duration (trustworthy if light curve has 940 points over 27.4 days)
Latent_Space 20 latent space values from the model (can be used for reconstruction)
Points Number of points in the chunk
Chunk_Description Description of the chunk used

Additional Project Codes:

All additional scripts and notebooks used in this work are provided in the Project_Codes folder.

Citation

If you use Microlensify in your research, please cite it appropriately.


Contact

For questions or support, please open an issue or contact atousakalantari99@gmail.com.

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

microlensify-1.0.4.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microlensify-1.0.4-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file microlensify-1.0.4.tar.gz.

File metadata

  • Download URL: microlensify-1.0.4.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for microlensify-1.0.4.tar.gz
Algorithm Hash digest
SHA256 6266b2cba91da29938d3d25942e48209ef6df533cc5d234c6ff0c2c0f02409e1
MD5 42e466061588486df4b228a36c0e4740
BLAKE2b-256 a13d4bbade2ca04aea10165395cfaa3b13513af05e16af5cc7ac8bda3163858a

See more details on using hashes here.

File details

Details for the file microlensify-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: microlensify-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for microlensify-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3815129795c0e155aa9a6567dae7f1e081243ae3e037e71c3d800bc0a1d32023
MD5 62ac8a40a2c8042b0b3e65890d22c2b2
BLAKE2b-256 00ece1ec474bb39d23a51e91a9b24c6bc74a0a8503ccc3c06e52d76118331957

See more details on using hashes here.

Supported by

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