This is not a bug, but it is a question of Rockstar's capabilities.
I am currently running some simulations with two forms of Dark Matter, decaying and stable. With these simulations, I am using yt_astro_analysis' capabilities with Rockstar to find halos. I was looking through the code for how Rockstar runs, and I found this section in the _setup_parameters function of RockstarHaloFinder in the rockstar.py file.
particle_mass = self.particle_mass
if particle_mass is None:
pmass_min, pmass_max = dd.quantities.extrema(
(ptype, self.mass_field), non_zero=True
)
particle_mass = pmass_min
elif isinstance(particle_mass, (tuple, list)) and len(particle_mass) == 2:
particle_mass = tds.quan(*particle_mass)
elif not isinstance(particle_mass, unyt_quantity):
particle_mass = tds.quan(particle_mass, "Msun / h")
particle_mass.convert_to_units("Msun / h")
Before this section of code, self.particle_mass = None and I have passed in the particle type all, which includes both the stable dark matter and decaying dark matter species. I want both species to contribute to the halos, but this code seems like all of the particles' masses will be set to the species that has the lower mass.
Is there a way for me to allow both species to have their pre-defined masses instead of being assigned by Rockstar? Is this possible to do already or should I make some code to allow for multiple species?
This is not a bug, but it is a question of Rockstar's capabilities.
I am currently running some simulations with two forms of Dark Matter, decaying and stable. With these simulations, I am using yt_astro_analysis' capabilities with Rockstar to find halos. I was looking through the code for how Rockstar runs, and I found this section in the
_setup_parametersfunction ofRockstarHaloFinderin therockstar.pyfile.Before this section of code,
self.particle_mass = Noneand I have passed in the particle typeall, which includes both the stable dark matter and decaying dark matter species. I want both species to contribute to the halos, but this code seems like all of the particles' masses will be set to the species that has the lower mass.Is there a way for me to allow both species to have their pre-defined masses instead of being assigned by Rockstar? Is this possible to do already or should I make some code to allow for multiple species?