halotools.empirical_models.model_defaults.get_halo_mass_key(mdef)[source] [edit on github]

For the input mass definition, return the string used to access halo table column storing the halo mass.

For example, the function will return halo_mvir if passed the string vir, and will return halo_m200m if passed 200m, each of which correspond to the Halotools convention for the column storing the halo mass in CachedHaloCatalog data tables.

mdef: str

String specifying the halo mass definition, e.g., ‘vir’ or ‘200m’.

mass_key : str