yt.frontends.gadget.definitions module

yt.frontends.gadget.definitions.SNAP_FORMAT_2_OFFSET = 16

Here we have a dictionary of possible element species defined in Gadget datasets, keyed by the number of elements. In some cases, these are mass fractions, in others, they are metals–the context for the dataset will determine this. The “Ej” key is for the total mass of all elements that are not explicitly listed.