We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When executing the sim_tester.ipynb file in /scratch I get the following error
`NameError Traceback (most recent call last) Cell In[1], line 12 3 import astropy.units as u 5 model = {'name': 'Nakazato_2013', 6 'param':{ 7 'progenitor_mass': 13u.Msun, (...) 10 'eos': 'shen'} 11 } ---> 12 sim = Simulation(model=model, 13 distance=10 * u.kpc, 14 Emin=0u.MeV, Emax=100u.MeV, dE=1u.MeV, 15 tmin=-1u.s, tmax=1u.s, dt=1*u.ms) 16 sim.run() 18 import matplotlib.pyplot as plt
File /usr/local/lib/python3.8/dist-packages/asteria-0.2.0.dev133-py3.8.egg/asteria/simulation.py:62, in Simulation.init(self, config, model, distance, flavors, hierarchy, interactions, mixing_scheme, mixing_angle, E, Emin, Emax, dE, t, tmin, tmax, dt, geomfile, effvolfile) 59 t = np.arange(-1, 1, 0.001) * u.s 60 _dt = 1 * u.ms ---> 62 self.source = Source(model['name'], model['param']) 63 self.distance = distance 64 self.energy = E
File /usr/local/lib/python3.8/dist-packages/asteria-0.2.0.dev133-py3.8.egg/asteria/source.py:32, in Source.init(self, model, model_params) 31 def init(self, model, model_params=None): ---> 32 self.model = init_model(model, **model_params) 33 self._interp_lum = {} 34 self._interp_meanE = {}
NameError: name 'init_model' is not defined`
It appears that the current version of SEWPY no longer supports to import the module function init_model as defined in /python/asteria/source.py
try: from snewpy.models.util import init_model except ModuleNotFoundError: from .util import init_model as init_snewpy_model_from_param
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When executing the sim_tester.ipynb file in /scratch I get the following error
`NameError Traceback (most recent call last)
Cell In[1], line 12
3 import astropy.units as u
5 model = {'name': 'Nakazato_2013',
6 'param':{
7 'progenitor_mass': 13u.Msun,
(...)
10 'eos': 'shen'}
11 }
---> 12 sim = Simulation(model=model,
13 distance=10 * u.kpc,
14 Emin=0u.MeV, Emax=100u.MeV, dE=1u.MeV,
15 tmin=-1u.s, tmax=1u.s, dt=1*u.ms)
16 sim.run()
18 import matplotlib.pyplot as plt
File /usr/local/lib/python3.8/dist-packages/asteria-0.2.0.dev133-py3.8.egg/asteria/simulation.py:62, in Simulation.init(self, config, model, distance, flavors, hierarchy, interactions, mixing_scheme, mixing_angle, E, Emin, Emax, dE, t, tmin, tmax, dt, geomfile, effvolfile)
59 t = np.arange(-1, 1, 0.001) * u.s
60 _dt = 1 * u.ms
---> 62 self.source = Source(model['name'], model['param'])
63 self.distance = distance
64 self.energy = E
File /usr/local/lib/python3.8/dist-packages/asteria-0.2.0.dev133-py3.8.egg/asteria/source.py:32, in Source.init(self, model, model_params)
31 def init(self, model, model_params=None):
---> 32 self.model = init_model(model, **model_params)
33 self._interp_lum = {}
34 self._interp_meanE = {}
NameError: name 'init_model' is not defined`
It appears that the current version of SEWPY no longer supports to import the module function init_model as defined in /python/asteria/source.py
try: from snewpy.models.util import init_model except ModuleNotFoundError: from .util import init_model as init_snewpy_model_from_param
The text was updated successfully, but these errors were encountered: