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

Attribute Error in Inverse_Beta_Decay Notebook #92

Open
EmmaTintinger opened this issue Oct 9, 2023 · 0 comments
Open

Attribute Error in Inverse_Beta_Decay Notebook #92

EmmaTintinger opened this issue Oct 9, 2023 · 0 comments

Comments

@EmmaTintinger
Copy link

Error:
AttributeError: nu_e_bar

Location:
Inverse_Beta_Decay: cell [3]

Error trace:

AttributeError Traceback (most recent call last)
Input In [3], in <cell line: 8>()
6 enu = np.linspace(0., 200., 101) * u.MeV
8 for ibd, style, lab in zip([InvBetaPar(), InvBetaTab()],
9 ['-', '.'],
10 ['Parametric (Eq. 25)', 'Table 1']):
---> 11 xs = ibd.cross_section(Flavor.nu_e_bar, enu)
12 lep = ibd.mean_lepton_energy(Flavor.nu_e_bar, enu)
13 axes[0][0].plot(enu, xs, style, label=lab)

File ~/opt/anaconda3/lib/python3.9/enum.py:429, in EnumMeta.getattr(cls, name)
427 return cls.member_map[name]
428 except KeyError:
--> 429 raise AttributeError(name) from None

AttributeError: nu_e_bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant