SNEWS2 / snewpy

A Python package for working with supernova neutrinos

Home Page:https://snewpy.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make `FlavorTransformation` produce a transformation matrix

Sheshuk opened this issue · comments

Currently FlavorTransformation can only produce prob_ee, prob_ex, prob_xe, prob_xx (and their bar counterparts).
I think it would be useful to have a method to output a transformation matrix, for all the four flavors, like this:

M = [
[prob_ee, prob_ex,          0,          0],
[prob_xe, prob_xx,          0,          0],
[      0,       0, prob_eebar, prob_xebar],
[      0,       0, prob_eebar, prob_xebar]]

and its permutation depending on the order of our Flavor enum.