Skip to content

v1.2.0

Latest

Choose a tag to compare

@mbustama mbustama released this 05 Oct 10:52
· 7 commits to main since this release
ef92d24

Magνs 1.2.0.

Magνs 1.2.0 fixes three physics errors, so some results change. It also validates inputs more strictly and adds a few features.

Results that change

  • Electron density from mass density. A density in g/cm³ is now converted with the atomic mass unit, ρ N_A Y_e, as in nuSQuIDS, GLoBES, Prob3++, NuFast, OscProb, and nuCraft. Before, it was 0.8% too low. Probabilities through the Earth's core change by up to 0.065 at 1–20 GeV (#168).
  • Lorentz violation for antineutrinos. The Lorentz-violating term now changes sign for antineutrinos when n_liv is even, including the default n_liv=0. Neutrinos, and odd n_liv, are unchanged (#162).
  • average=True. It now returns the phase average over an energy spread set by the new keyword average_spread (default 0.1). Before, it kept or dropped each interference term outright (#64).

Fixed

  • Calls from several threads no longer interfere (#153).
  • A tight tolerance on the Sun no longer gives a worse answer than the default.
  • Undeclared jumps and narrow spikes in a profile no longer end the refinement on a wrong answer.

Changed

  • Arguments are checked once per call, by one set of rules, at every entry point. Values that used to be ignored or misread now raise an error that names the argument (#160).
  • The 1-3 CP phase is dCP, and the Lorentz-violating one dxiCP, at every number of flavors. The old names d13 and dxi13 still work, with a FutureWarning (#121).
  • Every Hamiltonian builder accepts an array for its varying argument (#155).

Added

  • osc_prob_pseudo_dirac_vacuum, whose phase average stays exact even for very small splittings (#165).
  • Oscillograms with non-standard interactions and Lorentz violation (#146), and nubar= on the probability plots (#145).
  • On the command line, prob is optional (#138).

Install or upgrade with pip install -U magnuspy. The full list of changes is in the changelog.