[bugfix] H nuclei are being double-counted in the Arepo frontend #4211
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
yt computes "nuclei density" fields by summing up ion number density fields for the same nuclei with different ionization states. The Arepo frontend currently has
"H"
,"H_p0"
, and"H_p1"
all added to thespecies_names
attribute inArepoFieldInfo
, which is then used to compute the set up the species fields and compute the fields for specific abundances.The
"H_p0"
and"H_p1"
do not belong in this list for two reasons:ArepoFieldInfo.setup_gas_particle_fields
, and do not need to be handled bysetup_species_fields
.species_names
results in the number of hydrogen nuclei being double-countedThis PR removes those ionization species from the
species_names
attribute and also removes an alias betweenH_nuclei_density
andH_number_density
which was supposed to work (and maybe did at one point) but is no longer working. It is also unnecessary with the above fix.PR Checklist