Skip to content

Error with Fornax_2019 #75

@xinyuewu21

Description

@xinyuewu21

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions