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

Error with Fornax_2019 #75

Open
xinyuewu21 opened this issue Mar 11, 2022 · 0 comments
Open

Error with Fornax_2019 #75

xinyuewu21 opened this issue Mar 11, 2022 · 0 comments

Comments

@xinyuewu21
Copy link

There is an error in the simulation of Fornax_2019.

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [20], in <cell line: 6>()
      1 model = {'name': 'Fornax_2019',
      2          'param':{
      3              'progenitor_mass': 12 * u.Msun 
      4             }}
----> 6 sim = Simulation(model=model,
      7                  distance=10 * u.kpc, 
      8                  Emin=0*u.MeV, Emax=100*u.MeV, dE=1*u.MeV,
      9                  tmin=-0.21*u.s, tmax=4.49*u.s, dt=1*u.ms,
     10                  mixing_scheme='AdiabaticMSW',
     11                  hierarchy='normal')
     12 sim.run()

File ~/IceCube/ASTERIA/python/asteria/simulation.py:59, in Simulation.__init__(self, config, model, distance, flavors, hierarchy, interactions, mixing_scheme, mixing_angle, E, Emin, Emax, dE, t, tmin, tmax, dt, geomfile, effvolfile)
     56     t = np.arange(-1, 1, 0.001) * u.s
     57     _dt = 1 * u.ms
---> 59 self.source = Source(model['name'], model['param'])
     60 self.distance = distance
     61 self.energy = E

File ~/IceCube/ASTERIA/python/asteria/source.py:116, in Source.__init__(self, model, model_params)
    114 for flavor in Flavor:
    115     t = self.model.time
--> 116     self._interp_lum.update({flavor: PchipInterpolator(t, self.model.luminosity[flavor], extrapolate=False)})
    117     self._interp_meanE.update({flavor: PchipInterpolator(t, self.model.meanE[flavor], extrapolate=False)})
    118     self._interp_pinch.update({flavor: PchipInterpolator(t, self.model.pinch[flavor], extrapolate=False)})

AttributeError: 'Fornax_2019' object has no attribute 'luminosity'
@sgriswol sgriswol added this to Documentation in ASTERIA v2.0.0 Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
ASTERIA v2.0.0
Documentation & Unit Tests
Development

No branches or pull requests

1 participant