r/ScientificComputing • • 10h ago

A rerun that reports the environment moved instead of pretending it didn't

0 Upvotes

Repo: https://github.com/Furox-Art/scientific-computing-system-2.0 - MIT, release 5.5.1. The 2.0 in the name is the NumPy generation of the project, not the version number; this is the NumPy/SciPy build of the same library.

The behaviour I would point at first is about reruns. guided-fit writes a manifest with the random seed, the input hashes and the exact Python, NumPy, SciPy, pandas and Matplotlib versions it ran under. guided-fit-rerun then compares the saved analysis against the new one and says what moved, in values rather than in adjectives: which dependency version changed, and for confidence intervals the relative change, the largest bound shift, and both intervals.

There is a real archived replay in the repo rather than a hypothetical: a fit saved under Python 3.12.14 / NumPy 1.26.4 / SciPy 1.11.4 was replayed under the same interpreter with NumPy 2.3.5 and SciPy 1.18.1. Both version-change warnings fired. The largest 95% CI bound shift was 1.1747583669e-4, relative CI drift 0.003364917%, and the reliability label stayed reliable because it did not cross the 5% material-drift threshold. That is the useful shape: the environment changed, the output was checked anyway, and the report says which of the two happened.

Sizes, since they are easy to check and hard to fake: 53 importable names, 508 public exports, 2,066 tests, 100% branch coverage. The counts are measured from the tree by scripts/make_promo.py and CI re-measures them and rejects drift.

Install:

pip install scientific-computing-system-2.0
npm install -g scientific-computing-system-2.0

Python 3.11+. There is an optional [gpu] extra that pulls cupy-cuda12x for the cds2.gpu backend.

The limit: the version warning fires even when the numbers agree, so a stack bump always costs you a warning, and the 5% material-drift threshold is a policy choice the tool applies, not a statistical guarantee - a drift under that line still reports the result as reliable.


r/ScientificComputing • • 23h ago

SpinSpec 1.2.0 — faster exact NMR calculations and spectrum replot without rediagonalization

Post image
1 Upvotes

I've released version 1.2.0 of SpinSpec, an open-source program for simulating NMR spectra of coupled spin-1/2 nuclei across high-, low- and zero-field conditions.

The main numerical change is the use of conserved M_z blocks during Hamiltonian diagonalization, together with faster transformations of the gamma-weighted observation operator.

In nine-spin benchmarks, this reduced calculation times by approximately 22× at 3 T and 49× at zero field compared with the reference implementation. The online interface currently has an eight-spin limit.

Another useful improvement is automatic spectrum replotting: changing FWHM, frequency windows or vertical intensity limits reuses existing transition data rather than diagonalizing the Hamiltonian again.

The renderer also supports independent X/Y boundaries, automatic window selection and negative Y limits for visualizing signed interference between spin-group contributions.

I'm particularly interested in feedback on the numerical treatment of strongly coupled systems and the interpretation of group-resolved spectra near zero field.

Web calculator: https://nmrspec.org

Source: https://github.com/scleroze/SpinSpec

Release notes: https://nmrspec.org/changes


r/ScientificComputing • • 14h ago

GridLock: an open-source debugger built for MPI and parallel C++ development

Thumbnail
reddit.com
2 Upvotes