Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sheshuk/rate calculation in three flavor #363

Open
wants to merge 78 commits into
base: release_v2.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
9b0f5b7
Adding flavor_transfromation from "jpkneller-version-2.0"
Sheshuk Jun 7, 2024
d0414f9
Add missing imports, remove Two/Three/FourFlavor definitions from neu…
Sheshuk Aug 1, 2024
8fd03a9
Add missing imports, remove Two/Three/FourFlavor definitions from neu…
Sheshuk Jun 7, 2024
466233e
Removing repeating code, using FlavorMatrices
Sheshuk Jun 7, 2024
c07bcc1
Adding default Flavor import
Sheshuk Jun 7, 2024
6eae7d4
Use matrix multiplication in model
Sheshuk Jun 7, 2024
302699f
Implement some transformations with the FlavorMatrix
Sheshuk Jun 17, 2024
f8c9f6c
Closes #342: adding the function
Sheshuk Jun 17, 2024
5f68953
Fix the separator strings
Sheshuk Jul 25, 2024
f8bd6ad
Getting rid of 'Optional' type annotations
Sheshuk Jul 25, 2024
412f7a6
Moving Pmf_HDL function to MixingParameters class
Sheshuk Jul 25, 2024
84b09e1
Corrected ComplexRotationMatrix creation
Sheshuk Jul 25, 2024
88a8ef4
Implement AdiabaticMSW, NonAdiabaticMSWH, ThreeFlavorDecoherence, Two…
Sheshuk Jul 26, 2024
8b6ea1f
Converting the thansformation matrix to the flux flavor scheme
Sheshuk Jul 26, 2024
eda3106
Fix the CompleteExchange matrix
Sheshuk Jul 27, 2024
c3e8a17
Adding FourFlavorMixingParameters.Pmf_HDL
Sheshuk Jul 27, 2024
0ab8883
Implemented AdiabaticMSWes/NonAdiabaticMSWes
Sheshuk Jul 27, 2024
deec790
Adding 'project_to' method
Sheshuk Jul 29, 2024
8fc3dc5
Fix the presn test
Sheshuk Jul 29, 2024
a1e134d
Using shorter flavor notations in formulas
Sheshuk Jul 29, 2024
04127e4
Update flavor_transformations tests (partially)
Sheshuk Jul 29, 2024
9b7bf77
Using cdouble data type instead of complex_
Sheshuk Jul 29, 2024
655f35c
Remove erroneous 'bar_bar' indices
Sheshuk Jul 29, 2024
c34bed3
Implement NeutrinoDecay
Sheshuk Jul 30, 2024
82adebd
Using << operators in tests
Sheshuk Jul 30, 2024
c4cb8ce
Start working on QuantumDecoherence
Sheshuk Jul 31, 2024
dc96fe8
Update _repr_markdown_ to prevent creating unnecessary headers
Sheshuk Aug 1, 2024
f1bbfb2
Restore neutrino.Flavor as it's still used
Sheshuk Aug 1, 2024
64ac44c
Sync cosmetic changes from PR 350.
Aug 13, 2024
15afe91
Separate transformation classes to SN/Vacuum/Earth subclasses
Sheshuk Aug 14, 2024
88a65cb
Sync changes from PR #350.
Aug 15, 2024
9dfce20
Merge branch 'release_v2.0' into Sheshuk/FlavorTransformations_with_F…
Aug 15, 2024
9681ede
Update broken unit test.
Aug 15, 2024
37b789d
Fix call to super().
Aug 15, 2024
b588b83
Update change in property names.
Aug 15, 2024
fde7a22
Add mixing parameters to SNTransform constructor.
Aug 15, 2024
0f241be
Connect BEMEWS to EarthMatter transformation.
Aug 15, 2024
d2c8909
Add passing tests for Earth matter NMO/IMO.
Aug 16, 2024
ff3bea4
Moving flavor_transformation to a separate dir
Sheshuk Sep 17, 2024
27d371c
Method 'NFlavorMixingParameters.update' added to safely update parame…
Sheshuk Sep 17, 2024
f5238ee
Making sure the transformation knows its flavor scheme
Sheshuk Sep 17, 2024
7882096
Fixing imports
Sheshuk Sep 17, 2024
b465593
Adding __call__, fixing imports
Sheshuk Oct 21, 2024
8cdedf2
Update test definitions
Sheshuk Oct 21, 2024
63e3b70
Fix the errors in NeutrinoDecay
Sheshuk Oct 22, 2024
af165a1
Adding checks with the formulas from Snewpy_v2.0 draft
Sheshuk Oct 22, 2024
09735b5
CHECKME: Change formulas in tests for NeutrinoDecay
Sheshuk Oct 22, 2024
2f4954a
Fixing errors in indexing in QuantumDecoherence
Sheshuk Oct 22, 2024
a7e5aac
Fixing tests for QuantumDecoherence
Sheshuk Oct 23, 2024
11cb7ed
Update tests for EarthMatter
Sheshuk Oct 23, 2024
f82c4e9
Update EarthMatter to be able to set mixing_parameters after init
Sheshuk Oct 23, 2024
bf8f367
Implement EarthMatter with FlavorMatrix
Sheshuk Oct 23, 2024
c9af3d4
Update test for EarthMatter
Sheshuk Oct 23, 2024
9582dd5
Update flavor transformations according to new classes
Sheshuk Oct 23, 2024
1309f5e
AdiabaticMSW now requires input MixingParameters
Sheshuk Oct 23, 2024
7ec7fe6
Adding 'Container.from_flux' classmethod to create the container from…
Sheshuk Oct 23, 2024
fb1c925
Adding BEMEWS mark for tests, and skip these tests in standard testin…
Sheshuk Oct 23, 2024
1a132fb
Exclude tests by name, not by BEMEWS marker
Sheshuk Oct 23, 2024
fee54e6
Adding some draft documentation
Sheshuk Oct 24, 2024
d7b81b5
Implement MSWEffect with FlavorMatrix
Sheshuk Oct 24, 2024
b3ac8ac
Update some comments and docstrings
Sheshuk Oct 24, 2024
d8664a6
upd the docstring, to prvent from failing doc compilation
Sheshuk Oct 24, 2024
004593a
Using FlavorTransformation in get_transformed_spectra
Sheshuk Oct 25, 2024
eaf45db
Using 3flavors in RateCalculator
Sheshuk Oct 25, 2024
69e0d23
Enabling the rate calculation tests
Sheshuk Oct 25, 2024
b731d73
Plot stairs instead of line, if we have bin edges
Sheshuk Oct 25, 2024
7988d0c
Merge branch 'Sheshuk/FlavorTransformations_with_FlavorMatrices' into…
Sheshuk Oct 25, 2024
b7da119
Remove unused imports
JostMigenda Nov 18, 2024
cbf7736
Update python/snewpy/neutrino.py
Sheshuk Nov 18, 2024
9431841
Update python/snewpy/neutrino.py
Sheshuk Nov 18, 2024
c109851
Suggested restructuring of flavor transformations
JostMigenda Nov 21, 2024
9b2092c
rename transforms.py to TransformationChain.py
JostMigenda Nov 21, 2024
3629a90
Merge pull request #367 from SNEWS2/JostMigenda/FlavorTransformations…
Sheshuk Nov 22, 2024
c64fe1f
Using namedtuple to contain the flavor transformations in chain
Sheshuk Nov 22, 2024
a98ccba
Merge branch 'Sheshuk/FlavorTransformations_with_FlavorMatrices' into…
Sheshuk Nov 26, 2024
91deca8
Explicitly use ThreeFlavor instead of Flavor
Sheshuk Dec 6, 2024
3edad1d
Explicitly use ThreeFlavor instead of Flavor
Sheshuk Dec 6, 2024
c40cb91
Fix preSN loaders for ThreeFlavor case
Sheshuk Dec 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

- name: Run unit tests with pytest
run: |
pytest -m 'not snowglobes'
pytest -m 'not snowglobes' -k 'not EarthMatter'

- name: Build HTML docs
run: |
Expand Down
18 changes: 1 addition & 17 deletions doc/source/transformations.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
Flavor Transformations: ``snewpy.flavor_transformation``
========================================================

This module implements flavor transformations that describe how neutrinos of
different flavors change into each other between production inside the
supernova and detection on Earth.


Base Class for Flavor Transformations
-------------------------------------
.. autoclass:: snewpy.flavor_transformation.FlavorTransformation
:members:

Available Transformations
-------------------------

.. automodule:: snewpy.flavor_transformation
:members:
:exclude-members: FlavorTransformation
:member-order: bysource
.. automodule:: snewpy.flavor_transformation
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ markers=
snowglobes: tests that require SNOwGLoBES installed
crosscheck: integration tests for comparison with reference output
timing: benchmark testing of the function execution time
BEMEWS: use external BEMEWS package for calculation of EarthMatter effect


Loading
Loading