yt.analysis_modules.halo_analysis.halo_filters.not_subhalo

yt.analysis_modules.halo_analysis.halo_filters.not_subhalo(halo, field_type='halos')[source]

Only return true if this halo is not a subhalo.

This is used for halo finders such as Rockstar that output parent and subhalos together.