Extracting subhalo IDs from Halo ID

Jasmine Fitzsimons
  • 2
  • 13 Feb

Hello! I have written two blocks of code that extracts the BCG ID from the Halo ID, and another bloc of code that extracts the subhalo IDs within a given halo. I am not sure I completely understand what I did and if I am utilizing GroupFirstSub properly. Any feedback would be greatly appreciated!
Screenshot 2026-02-12 at 9.27.12 PM.png

Dylan Nelson
  • 13 Feb

This looks fine, is there some problem?

You shouldn't need int() everywhere, all these IDs are already ints.

I would suggest to avoid words like "Cluster" and "BCG", just keep in direct, and either always use "Halo" and "Subhalo". If by BCG you mean "central subhalo" or "first subhalo", keep it at that.

  • Page 1 of 1