Skip to content
Snippets Groups Projects
Commit 0b9efb30 authored by Felix Metzner's avatar Felix Metzner
Browse files

Fixing handling of pdg code array in Gamma function in BToDstarLNu.py

parent 25563098
Branches
No related tags found
No related merge requests found
......@@ -148,7 +148,11 @@ class BToDstarLNu:
)[0]
def Gamma(self, pdg):
return self._gamma_int[np.abs(pdg)]
gamma = np.full(len(pdg), np.nan)
for pdg_code in self._gamma_int.keys():
gamma[abs(pdg) == pdg_code] = self._gamma_int[pdg_code]
assert not np.isnan(gamma).any()
return gamma
def _Gamma(self, pdg):
w_min = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment