Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

astrolachesis

Latest version: v1.0.14

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
PyPI package Publisher: jvines
4 Stars
2 Forks
5 Versions
505 Downloads
Python Repo language

Scan summary

astrolachesis was last scanned on 30 Nov 2026 at version 1.0.14. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest 2 were published within 4 days (27–30 Nov 2026).
  • Findings: No rules fired in version 1.0.14.
  • Downloads: 505 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.14 LATEST 30 Nov 2026 No rules fired
1.0.13 27 Nov 2026 No rules fired
1.0.12 13 Nov 2026 No rules fired
1.0.11 12 Nov 2026 Not shown
1.0.10 11 Nov 2026 Not shown

No rules fired in 1.0.14

Findings

Findings for v1.0.14. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.14; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

LACHESIS (modeL Averaging for isoChrone cHaractErization of Stellar propertIeS)

Stellar masses, ages, and evolutionary states from photometry

LACHESIS is a Python code that estimates stellar mass, age, and evolutionary state by fitting broadband photometry to isochrone grids using nested sampling, with Bayesian Model Averaging across multiple stellar evolution models.

It is designed as the natural companion to ARIADNE (Vines & Jenkins 2022): where ARIADNE characterizes stellar atmospheres (Teff, logg, [Fe/H], radius) via SED fitting, LACHESIS takes over for the evolutionary parameters that require isochrone models.

Installation

pip install astroLACHESIS

For development:

git clone https://github.com/jvines/LACHESIS.git
cd LACHESIS
pip install -e .

The bolometric-correction tables ship with the package, and the isochrone grids install automatically as the lachesis-grids dependency, so no manual downloads or environment variables are needed.

Quick start

The fastest way to use LACHESIS is the one-liner interface. Just give it a star name:

import lachesis

result = lachesis.fit("HD 209458")

This will:

  1. Resolve the name via Simbad to get Gaia DR3 coordinates
  2. Query Gaia, 2MASS, WISE, SDSS, PanSTARRS, and other catalogs for photometry
  3. Look for spectroscopic priors in APOGEE, GALAH, RAVE, LAMOST, and PASTEL
  4. Fit the photometry against 5 isochrone grids (MIST, PARSEC, Dartmouth, BaSTI, YAPSI)
  5. Combine the results via Bayesian Model Averaging

The output is a BMAResult object containing the combined posterior samples and derived physical parameters:

import numpy as np

# Posterior samples for mass and age
mass = result.derived["initial_mass"]
age = 10 ** result.samples[:, 1] / 1e9  # log_age → Gyr

print(f"Mass: {np.median(mass):.3f} Msun")
print(f"Age:  {np.median(age):.2f} Gyr")

If you already know the coordinates or Gaia ID (useful for high proper-motion stars where a cone search might grab the wrong source):

result = lachesis.fit("HD 103095", gaia_id=4034171629042489088)
result = lachesis.fit("WASP-19", ra=148.417, dec=-45.659)

Stellar information setup

To use LACHESIS start by setting up the stellar information, this is done by importing the Star module.

from lachesis.star import Star

Stars are defined in LACHESIS by their RA and DEC in degrees, a name, and optionally the Gaia DR3 source id, for example:

starname = 'HD 209458'
ra = 330.795
dec = 18.884
gaia_id = 1779546757669063552

s = Star(starname, ra, dec, g_id=gaia_id)

The starname is used for identification, and the g_id is provided to make sure the automatic photometry retrieval collects the correct magnitudes, otherwise LACHESIS will try and get the g_id by itself using a cone search centered around the RA and DEC.

Executing the previous block will start the photometry and stellar parameter retrieval routine. LACHESIS will query Gaia DR3 for parallax, then cross-match against 2MASS, WISE, SDSS, PanSTARRS, SkyMapper, GALEX, APASS, and Tycho-2 for broadband photometry. It will also search for spectroscopic priors in Hypatia, PASTEL, APOGEE, GALAH, RAVE, and LAMOST (in that priority order).

If you want to check the retrieved magnitudes you can call the print_mags method from Star:

s.print_mags()

If you already have the magnitudes and wish to override the on-line search, you can provide a dictionary where the keys are the filters and values are the (mag, mag_err) tuples:

s = Star(starname, ra, dec, g_id=gaia_id, magnitudes={
    '2MASS_J': (7.49, 0.02),
    '2MASS_H': (7.18, 0.03),
    '2MASS_Ks': (7.09, 0.02),
})

If LACHESIS found a bad photometry point, you can remove it:

s.remove_mag('WISE_RSR_W2')

Or add one manually:

s.add_mag(7.49, 0.02, '2MASS_J')
Interstellar extinction

LACHESIS has an incorporated prior for the interstellar extinction in the Visual band, $A_{\rm V}$ which consists of a uniform prior between 0 and the maximum line-of-sight value provided by the SFD dust maps. This, however, can be changed by providing a different dustmap:

s = Star(starname, ra, dec, g_id=gaia_id, dustmap='Bayestar')

We provide the following dustmaps (same as ARIADNE):

These maps are queried through the dustmaps package. LACHESIS downloads the map it needs on first use and checks each file's MD5 sum (lachesis/dustdata.py): SFD'98 from the sfddata mirror with the Harvard Dataverse as fallback, the others from the Dataverse or the Planck Legacy Archive (dustmaps.sfd.fetch() itself gets HTTP 403 from the Dataverse). The files go to $LACHESIS_DUSTMAPS_DIR, or to the directory in your dustmaps configuration file, or to ~/.cache/lachesis/dustmaps. Offline, put the files there yourself (the error names each file and its MD5 sum) or pre-fetch with python -m lachesis.dustdata SFD.

From an ARIADNE result

If you've already run ARIADNE on a star, you can pass its .nc output directly to LACHESIS. This loads the full ARIADNE posterior and builds KDE-based external priors for [Fe/H] and logg (the parameters where ARIADNE's posterior collapses to the spectroscopic prior, so no double-counting occurs). Provide ra/dec so that LACHESIS can retrieve photometry for the isochrone fit:

s = Star.from_ariadne("ariadne_result.nc", starname="HD 209458",
                       ra=330.795, dec=18.884)

In this mode, LACHESIS fits the photometry with informed [Fe/H] and logg priors from ARIADNE. The final reported parameters combine the best of both: Teff, radius, Av, and distance from ARIADNE; mass, age, and evolutionary state from LACHESIS; [Fe/H] and logg from either (both collapse to the spectroscopic prior).

Fitter setup

In this section we'll detail how to set up the fitter for the Bayesian Model Averaging (BMA) mode of LACHESIS. For single grids the procedure is very similar.

First, import the fitter from LACHESIS:

from lachesis.fitter import Fitter

There are several configuration parameters we have to set up, the first one is the output folder where we want LACHESIS to output the fitting files and results, next we have to select the fitting engine (only dynesty is supported), number of live points to use, evidence tolerance threshold, bounding method, sampling method, threads, dynamic nested sampler and rwalk steps (None for the default, which scales with the dimension). Each grid is one dynesty run, and its ln Z and error are that run's. After selecting all of those, we need to select the grids we want to use and finally, we feed them all to the fitter:

out_folder = 'your folder here'

engine = 'dynesty'
nlive = 2000
dlogz = 0.01
bound = 'multi'
sample = 'rwalk'
threads = 4
dynamic = False
walks = None

setup = [engine, nlive, dlogz, bound, sample, threads, dynamic, walks]

# Feel free to comment out any unneeded/unwanted grids
grids = [
    'mist',
    'parsec',
    'dartmouth',
    'basti',
    'yapsi',
]

f = Fitter()
f.star = s
f.setup = setup
f.av_law = 'fitzpatrick'
f.out_folder = out_folder
f.bma = True
f.grids = grids

We allow the use of four different extinction laws:

  • fitzpatrick
  • cardelli
  • odonnell
  • calzetti

The next step is setting up the priors to use:

f.prior_setup = {
    'eep': ('default'),
    'log_age': ('default'),
    'feh': ('default'),
    'dist': ('default'),
    'Av': ('default'),
}

A quick explanation on the priors:

The default prior for the distance is a truncated normal drawn from the Bailer-Jones distance estimate from Gaia DR3 (matching ARIADNE's behavior). The default prior for [Fe/H] is uniform unless spectroscopic priors are found in APOGEE, GALAH, RAVE, LAMOST, or PASTEL, in which case a Gaussian prior is used automatically. The default prior for the age is flat in log(age). The default prior for Av is a flat prior that ranges from 0 to the maximum line-of-sight value from the selected dustmap. The EEP prior is weighted by the initial mass function (IMF) and the Jacobian |dM_ini/dEEP|; the default IMF is Chabrier (2003), with Kroupa (2001) and Salpeter (1955) available as alternatives.

We offer customization on the priors as well:

Prior Hyperparameters Notes
Fixed value
Normal mean, std
Uniform ini, end
Morton --- [Fe/H] only: 2-Gaussian local disk + halo (Casagrande+ 2011)
RAVE --- [Fe/H] only: N(-0.125, 0.234) from RAVE DR5
Default ---

The log_age prior also accepts 'uniform' to sample flat in linear age (rather than the default flat in log age). This upweights older ages and is the prior used by isochrones (Morton).

So if you knew from a spectroscopic analysis that [Fe/H] = 0.09 +/- 0.05 and the star is nearby (< 70 pc) so you wanted to fix Av to 0, your prior dictionary should look like this:

f.prior_setup = {
    'eep': ('default'),
    'log_age': ('default'),
    'feh': ('normal', 0.09, 0.05),
    'dist': ('default'),
    'Av': ('fixed', 0),
}

Or if you wanted to use population priors for [Fe/H] and age:

f.prior_setup = {
    'feh': ('morton'),       # 2-Gaussian SDSS disk + halo
    'log_age': ('uniform'),  # flat in linear age
}

Leaving everything at default usually works well enough.

After having set up everything we can finally initialize the fitter and start fitting:

f.initialize()
f.fit_bma()

Now we wait for our results!

To see the full prior configuration:

f.show_priors()

Single-grid fits

Sometimes you don't want BMA, either because you're targeting a specific stellar population a single grid is best suited for, or because the grid itself can't participate in BMA (Geneva/BHAC15/STAREVOL). Set f.bma = False and a single grid name:

f = Fitter()
f.star = s
f.grids = ["bhac15"]
f.bma = False
f.setup = ["dynesty", 1000, 0.01, "multi", "rwalk", 4, False]
f.initialize()
f.fit()

The routine display will show Selected engine : Single model (BHAC15) (or whichever grid you chose) to make the mode explicit.

Three grids ship with LACHESIS that are only available as single-grid fits; they have intentionally narrow coverage that would bias BMA evidence comparisons, but they're the right tool for their target populations:

  • BHAC15 (Baraffe+ 2015): M dwarfs, 0.01–1.4 Msun, solar metallicity. See test_bhac15.py for a Proxima Centauri example.
  • Geneva (Mowlavi+ 2012): non-rotating low/intermediate-mass grid, 0.5-3.5 Msun. See test_geneva.py.
  • STAREVOL (Amard+ 2019): includes stellar rotation (Vini) as a 6th sampled parameter. See test_starevol.py.

You can also run any of the BMA grids (MIST, PARSEC, etc.) as a single-grid fit if you just want the posterior from one specific model.

Available grids

Grid [Fe/H] range Age range EEPs BMA Notes
MIST -4.0 to +0.5 5.0–10.3 202–808 Yes Default reference grid
PARSEC -2.2 to +0.5 6.6–10.1 1–1200 Yes Gap-filled inter-phase regions
Dartmouth -2.5 to +0.5 9.0–10.1 2–279 Yes Native DSEP EEPs
BaSTI -3.2 to +0.4 7.9–10.2 1–2100 Yes Mass-index EEPs
YAPSI -0.75 to +0.55 8.0–10.2 1–71 Yes Yale-Potsdam
Geneva -0.33 to +0.54 7.5–10.2 0–600 No 0.5–3.5 Msun only
BHAC15 0.0 only 6.0–10.0 1–30 No M dwarfs, 0.01–1.4 Msun
STAREVOL -2.14 to +0.41 7.0–10.1 1–422 No Includes rotation (Vini)

Geneva, BHAC15, and STAREVOL are excluded from BMA because their parameter coverage is too narrow to put their evidence on a common scale with the rest: BHAC15 is single-metallicity, STAREVOL carries a rotation parameter the others do not, and Geneva spans only 0.5-3.5 Msun and log t 7.5-10.2. The exclusion is enforced in Fitter.initialize. They work well as standalone fits for their target populations.

Visualization

LACHESIS includes a publication-quality plotter that follows ARIADNE's visual style (serif fonts, consistent sizing). Like ARIADNE's SEDPlotter, you point it at the results file and an output folder:

from lachesis.plotter import ISOPlotter

in_file = out_folder + '/lachesis_HD_209458_BMA.nc'
plots_out = out_folder + '/plots'

artist = ISOPlotter(in_file, plots_out)
artist.plot_corner()
artist.plot_histograms()
artist.plot_hr()
artist.plot_mass_age()
artist.plot_model_weights()
artist.summary()

Since the plotter loads from the .nc file, you can re-plot at any time without re-running the fit. If you're iterating through many stars, call artist.clean() to close opened figures.

LaTeX output

For papers, you can get formatted parameter strings for the parameters LACHESIS actually constrains (mass, age, [Fe/H], logg):

latex = artist.to_latex()
for param, val in latex.items():
    print(f"{param}: {val}")
# initial_mass: $1.148^{+0.037}_{-0.034}$
# age_gyr: $3.42^{+1.21}_{-0.89}$
# [Fe/H]: $-0.01^{+0.05}_{-0.04}$
# log_g: $4.35^{+0.02}_{-0.03}$

For Teff, radius, distance, and Av, use ARIADNE's output; those are better constrained by the SED fit.

Output files

When f.out_folder is set, LACHESIS writes:

  • lachesis_{starname}_BMA.nc: Full posterior as an arviz InferenceData (netCDF4). This is the canonical format for passing results to downstream tools.
  • lachesis_{starname}_BMA.dat: Summary statistics (median, 16th/84th percentiles) in human-readable format.
  • model_weights.dat: BMA posterior model probabilities and log-evidences per grid.

Reading results

import arviz as az

idata = az.from_netcdf("output/lachesis_HD_209458_BMA.nc")
print(idata.posterior)

The Thread

LACHESIS is part of a suite of tools for end-to-end stellar characterization. All tools exchange full posteriors via arviz InferenceData in netCDF4 format. Each tool is standalone; the pipeline is the happy path, not the only path.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases astrolachesis

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229