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

Import Error in Asteria Notebooks #88

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

Import Error in Asteria Notebooks #88

EmmaTintinger opened this issue Oct 9, 2023 · 0 comments

Comments

@EmmaTintinger
Copy link

Error:
ImportError: cannot import name 'Flavor' from 'asteria.neutrino'

Locations:
-Detector_Hits: Cell [1]:
-Detector_Hits_File: Cell [1]:
-Detector_Response: Cell [1]:
-Inverse_Beta_Decay: Cell [1]:
-Load_Simulation: Cell [1]:
-Piegsa_Earth_Oscillations: Cell [1]:
-Simplemixing_Class: Cell [1]:
-Simulation_Handling: Cell [1]:
-Supernova_Mixing: Cell [1]:

Error trace from Detector_Hits nb:

ImportError Traceback (most recent call last)
Input In [2], in <cell line: 9>()
6 import matplotlib.pyplot as plt
8 from asteria import config, source, detector
----> 9 from asteria.neutrino import Flavor
11 mpl.rc('font', size=18)

ImportError: cannot import name 'Flavor' from 'asteria.neutrino' (/Users/emmatintinger/ASTERIA/python/asteria/neutrino.py)


Solution:
Change “from asteria.neutrino import Flavor” to “from snewpy.neutrino import Flavor” in cell [1]

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