jacscanomaly
Find short anomalies in microlensing light curves.
Fit a single-lens model (PSPL, FSPL, parallax), scan its residual for short bumps and dips, and describe what is found: a host fit the anomalies do not pull, and each anomaly as bump / dip / caustic with its time and FWHM.
Documentation: https://jacscanomaly.readthedocs.io/en/latest/
Installation
pip install jacscanomaly
Example
One light curve is one Event; the steps are its methods and the results stay on it.
import numpy as np
from jacscanomaly import Event
time, flux, ferr = np.load("example/example_data.npy").T
ev = Event(time, flux, ferr, ra_deg=268.4, dec_deg=-29.2, ephemeris="roman.txt")
ev.fit("pspl")
pspl_scan = ev.scan()
if pspl_scan.detected:
ev.fit("fspl", start="pspl")
fspl_scan = ev.scan()
ev.fit("parallax", start="pspl")
parallax_scan = ev.scan()
if fspl_scan.detected and parallax_scan.detected:
ev.fit_atoms("pspl")
ev.fit_atoms("fspl")
ev.fit_atoms("parallax")
ev.summary()
ev.write_json("event.json")
ev.plot_result("pspl")
Example data
The example light curves are drawn from 2,371 simulated Roman light curves of planetary microlensing events (with parallax and orbital motion), made by the Roman Galactic Exoplanet Survey Project Infrastructure Team (RGES PIT), WG07 Survey Simulations and Pipeline Validation (Farzaneh Zohrabi, Matthew Penny, Macy Huston, Ali Crisp, et al.), assuming the Cassan exoplanet mass function.
Background
The residual scan over anomaly times and durations follows the systematic KMTNet AnomalyFinder search:
Zang, W., Jung, Y., Yee, J., et al. (2021). Systematic KMTNet Planetary Anomaly Search, Paper I: OGLE-2019-BLG-1053Lb, A Buried Terrestrial Planet. AJ, 162, 163. DOI: 10.3847/1538-3881/ac12d4
Citation
If you use jacscanomaly in academic work, please cite the software
(citation.cff).
Development
git clone git@github.com:NunotaKansuke/jacscanomaly.git
cd jacscanomaly
pip install -e ".[dev]"
pytest
sphinx-build -W -b html docs docs/_build/html
This package was developed with the help of AI coding assistants: OpenAI ChatGPT / Codex and Anthropic Claude (Claude Code).
Metadata
Release files for jacscanomaly 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jacscanomaly-1.0.2.tar.gz | 2.0 MB | With provenance | Details for jacscanomaly-1.0.2.tar.gz |
Built distributions (wheels)
Total release size: 47.0 MB
Release files / jacscanomaly-1.0.2.tar.gz
| Download URL | jacscanomaly-1.0.2.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffcb6b50c072972d0eae8237d123637ddea68d129ab08cd3081fc654d4c4e15c
|
|
BLAKE2b-256 checksum How to use checksums |
7c6e3efa7611ceee38b8d00140307d9608e94ceb874ea7b230154ff59b41084e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp313-cp313-win_amd64.whl
| Download URL | jacscanomaly-1.0.2-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bf2590efc4b8952dee28f06f8ace01952afbab8926a13a71b112b18c3e8d046f
|
|
BLAKE2b-256 checksum How to use checksums |
858892649d0f8d6b2ceb35cdef2f0d47213bd144eba76d927229eea8588e67dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | jacscanomaly-1.0.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
5346e58a344ce8fbc27889defa1225e994a3a4463a6c3a29f4869cfff6d8d770
|
|
BLAKE2b-256 checksum How to use checksums |
10d1c49227d16f14d57c50c87d5b3cebd98fa4d92bf77c452c615a444922f468
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | jacscanomaly-1.0.2-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
39b71025d90c91471f0052a112ddeadb1f66326e2595412be75fb8ee46a6868e
|
|
BLAKE2b-256 checksum How to use checksums |
bbe38bfc1faf65a08d5f771f3901bec6e7d4a0d6efa923e0a8011e2885785024
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp312-cp312-win_amd64.whl
| Download URL | jacscanomaly-1.0.2-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
45ba9b7d147df1a6303dce351f22b2e1aa042876230457cb9940a7ff12069352
|
|
BLAKE2b-256 checksum How to use checksums |
f8bd6ba26fc7c8c562915d8f60359a9f8deb499694b2a1aecf5c24f8820850cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | jacscanomaly-1.0.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
6593fc59be592164543fb32793f7c5816756656864faaf7ab8e30e5893711d28
|
|
BLAKE2b-256 checksum How to use checksums |
fac5deb9dff8718376c452d4d1c1ca6ec18427adfed212cb67851261d126100d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | jacscanomaly-1.0.2-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
db6c7d6595e1cd2879590dd60d14020c6c564a9592eea795e50edfe32504725a
|
|
BLAKE2b-256 checksum How to use checksums |
900e66c16ee995e1b1768962d2db6add8b87c716c3cd5ea0c19e4aac46dce3ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp311-cp311-win_amd64.whl
| Download URL | jacscanomaly-1.0.2-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6a3bc7f00e56fcf14e3da9a6f2e435e3c351e22b8a6c0b26ae0526a8fb171e6e
|
|
BLAKE2b-256 checksum How to use checksums |
e1b686e6f23ff7ebed4bde6e55bdfbb50d6dc6c83f7019010b9aa698d0b28fef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | jacscanomaly-1.0.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
bb30e246495b357fad2c5c3ac5ba20c1b8cee62e2829fee4f18c08c559690e9d
|
|
BLAKE2b-256 checksum How to use checksums |
fbfc688804549afb8a5e4371caaf4f18b9a26175cc8e2e033634e4699610c086
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | jacscanomaly-1.0.2-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
74440d7a260eee0f1b1d2c7b21516d40231f5b81b99924b7cc8b5316727b7e37
|
|
BLAKE2b-256 checksum How to use checksums |
4d5213832fdf61bc0b711a3984362ebcd404426e2e52bb526bd78c3d9024b4d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp310-cp310-win_amd64.whl
| Download URL | jacscanomaly-1.0.2-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9ba785a3b27bdc2e6e0abb2657993f992026f19392c1a7ded8d1003889f9493d
|
|
BLAKE2b-256 checksum How to use checksums |
f139f013719a7a7ba55ea2c7e8121eb24f07c00add0feaa2dea5eea846776888
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | jacscanomaly-1.0.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f08d4c22ddc7e88c5546be376c744e6aba159b04c9f7b80eeee0e7d01b7d5c94
|
|
BLAKE2b-256 checksum How to use checksums |
8913ce46e2f4dcbc3844b99bf9552a07b6b7eb5435cd063517be8462b43ee5bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | jacscanomaly-1.0.2-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a0dfc3dbfb7a84d102815bbe7dac954b3d9b3b3bc5cbdf79c80d0c91bb93667a
|
|
BLAKE2b-256 checksum How to use checksums |
3023c479ad39242ad6037dd81665c0dad2b75a17e6f1630bac1a0e4ab2683326
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp39-cp39-win_amd64.whl
| Download URL | jacscanomaly-1.0.2-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
028dc2cd1809c79ba3457a0f22c3ff0a2b71b1fa6bb4385de2d24e17b883f14b
|
|
BLAKE2b-256 checksum How to use checksums |
d2f4fe36a184860904b27c6ec755ea9921cfb571eedabc7eb0f186cbc0d8024c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | jacscanomaly-1.0.2-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.9 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
4ecb6e208f25411c457ab4b79a3b99d0f944bef8518313f6f3ddab944c99fbdc
|
|
BLAKE2b-256 checksum How to use checksums |
f159ad6b8bcb5cf86abb08f7520939211cb1644f8fa6e38b367a8890075cbbb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / jacscanomaly-1.0.2-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | jacscanomaly-1.0.2-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
db4e20103e2c6492dff66a892511dd3dfbae6226637ec64f875d9fd28e18b860
|
|
BLAKE2b-256 checksum How to use checksums |
97140586f6274343674a140528c8be17283f3df8dbf76001a13f7982c9a0d701
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for jacscanomaly 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 16 files in this release have been uploaded with provenance metadata.
Attestation for jacscanomaly-1.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.