aboutsummaryrefslogtreecommitdiffstats
path: root/golemflavor/fr.py
diff options
context:
space:
mode:
authorShivesh Mandalia <shivesh.mandalia@outlook.com>2020-02-28 22:38:40 +0000
committerShivesh Mandalia <shivesh.mandalia@outlook.com>2020-02-28 22:38:40 +0000
commit018cf806e2d852df164b0c795d4e3ffcd122dda0 (patch)
tree08efc6310ae929d60d9c9881b40a0b337da8841d /golemflavor/fr.py
parent4707f109e2bc35c6e6f6b737607323c0a5931e48 (diff)
downloadGolemFlavor-018cf806e2d852df164b0c795d4e3ffcd122dda0.tar.gz
GolemFlavor-018cf806e2d852df164b0c795d4e3ffcd122dda0.zip
add brackets to all print statements
Diffstat (limited to 'golemflavor/fr.py')
-rw-r--r--golemflavor/fr.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/golemflavor/fr.py b/golemflavor/fr.py
index ba9a8e9..6692609 100644
--- a/golemflavor/fr.py
+++ b/golemflavor/fr.py
@@ -66,11 +66,11 @@ def determinant(x):
Examples
----------
- >>> print determinant(
+ >>> print(determinant(
>>> [[-1.65238188-0.59549718j, 0.27486548-0.18437467j, -1.35524534-0.38542072j],
>>> [-1.07480906+0.29630449j, -0.47808456-0.80316821j, -0.88609356-1.50737308j],
>>> [-0.14924144-0.99230446j, 0.49504234+0.63639805j, 2.29258915-0.36537507j]]
- >>> )
+ >>> ))
(2.7797571563274688+3.0841795325804848j)
"""
@@ -94,7 +94,7 @@ def angles_to_fr(src_angles):
Examples
----------
- >>> print angles_to_fr((0.3, 0.4))
+ >>> print(angles_to_fr((0.3, 0.4)))
(0.38340579025361626, 0.16431676725154978, 0.45227744249483393)
"""
@@ -129,7 +129,7 @@ def angles_to_u(bsm_angles):
Examples
----------
>>> from fr import angles_to_u
- >>> print angles_to_u((0.2, 0.3, 0.5, 1.5))
+ >>> print(angles_to_u((0.2, 0.3, 0.5, 1.5)))
array([[ 0.66195018+0.j , 0.33097509+0.j , 0.04757188-0.6708311j ],
[-0.34631487-0.42427084j, 0.61741198-0.21213542j, 0.52331757+0.j ],
[ 0.28614067-0.42427084j, -0.64749908-0.21213542j, 0.52331757+0.j ]])
@@ -184,7 +184,7 @@ def cardano_eqn(ham):
>>> [-0.34631487-0.42427084j, 0.61741198-0.21213542j, 0.52331757+0.j ],
>>> [ 0.28614067-0.42427084j, -0.64749908-0.21213542j, 0.52331757+0.j ]]
>>> )
- >>> print cardano_eqn(ham)
+ >>> print(cardano_eqn(ham))
array([[-0.11143379-0.58863683j, -0.09067747-0.48219068j, 0.34276625-0.08686465j],
[ 0.14835519+0.47511473j, -0.18299305+0.40777481j, 0.31906300+0.82514223j],
[-0.62298966+0.07231745j, -0.61407815-0.42709603j, 0.03660313+0.30160428j]])
@@ -247,7 +247,7 @@ def normalise_fr(fr):
Examples
----------
>>> from fr import normalise_fr
- >>> print normalise_fr((1, 2, 3))
+ >>> print(normalise_fr((1, 2, 3)))
array([ 0.16666667, 0.33333333, 0.5 ])
"""
@@ -347,7 +347,7 @@ def params_to_BSMu(bsm_angles, dim, energy, mass_eigenvalues=MASS_EIGENVALUES,
Examples
----------
>>> from fr import params_to_BSMu
- >>> print params_to_BSMu((0.2, 0.3, 0.5, 1.5, -20), dim=3, energy=1000)
+ >>> print(params_to_BSMu((0.2, 0.3, 0.5, 1.5, -20), dim=3, energy=1000))
array([[ 0.18658169 -6.34190523e-01j, -0.26460391 +2.01884200e-01j, 0.67247096 -9.86808417e-07j],
[-0.50419832 +2.14420570e-01j, -0.36013768 +5.44254868e-01j, 0.03700961 +5.22039894e-01j],
[-0.32561308 -3.95946524e-01j, 0.64294909 -2.23453580e-01j, 0.03700830 +5.22032403e-01j]])
@@ -475,7 +475,7 @@ def test_unitarity(x, prnt=False, rse=False, epsilon=None):
----------
>>> from fr import test_unitarity
>>> x = np.identity(3)
- >>> print test_unitarity(x)
+ >>> print(test_unitarity(x))
array([[ 1., 0., 0.],
[ 0., 1., 0.],
[ 0., 0., 1.]])
@@ -512,7 +512,7 @@ def u_to_fr(source_fr, matrix):
Examples
----------
>>> from fr import params_to_BSMu, u_to_fr
- >>> print u_to_fr((1, 2, 0), params_to_BSMu((0.2, 0.3, 0.5, 1.5, -20), 3, 1000))
+ >>> print(u_to_fr((1, 2, 0), params_to_BSMu((0.2, 0.3, 0.5, 1.5, -20), 3, 1000)))
array([ 0.33740075, 0.33176584, 0.33083341])
"""