Skip to content

Type error from keyword argument "mh" while calling the Simulation object #147

Description

@Shlok2223
if mixing_scheme is not None:
                if mixing_scheme == 'NoTransformation' or mixing_scheme == 'CompleteExchange':
                    self._mixing = getattr(ft, mixing_scheme)()
                else:
                    # TODO: Improve mixing name checking, this argument is case sensitive
                    self._mixing = getattr(ft, mixing_scheme)(mh=self.hierarchy)
            else:
                self._mixing = ft.NoTransformation()

The "mh" keyword used in the above code from simulation.py has been removed from snewpy's flavor_transformation module. Hence, it is leading to the following keyword error:

t/s]

Traceback (most recent call last)

TypeError

Cell In[6], line 19

14 model dict(name='Mori_2023',

15

param=dict(axion_mass-masseu.MeV, axion_coupling-ga*le-18/u.GeV))

16# print(mass, ma, ga, model)

17 18 # Run the ASTERIA simulation.

19 sim

Simulation(model-model,

20

21

22

23

24

distance dist,

Emin Elo, Emax-Ehl, de-delta_E,

tmin-tlo, tmax-thi, dt-delta_t

mixing_scheme flavor_xform,

25 sim.run()

hierarchy-ass_ordering)

27 #- Write output to FITS, binning in 10 ms.

File /opt/anaconda3/envs/IceCubeStuff/lib/python3.12/site-packages/asteria/simulation.py:183, in Simulation.__init__(self, config, model, dis tance, res_dt, flavors, hierarchy, interactions, mixing scheme, mixing angle, E, Emin, Emax, de, t, tmin, tmax, dt, detector_scope, add_wls,

geomfile, effvolfile) self._mixing getattr(ft, mixing_scheme)()

100

101 else:

#TODO: Improve mixing name checking, this argument is case sensitive

102

self._mixing = getattr(ft, mixing_scheme) (mh=self.hierarchy)

103

104 else:

105 self. mixing ft. NoTransformation()

TypeError: construct_chain.<locals>.construct() got an unexpected keyword argument 'mh'

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions