Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

All upid values are -1 when using SubhaloPhaseSpace

Open
#1,024 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start at the SubhaloPhaseSpace entry point and reproduce the reported satellite-galaxy case. Compare halo_id, halo_hostid, and halo_upid for satellites to determine where upid becomes -1; done means satellite records retain their host halo ID while genuine host halos still use -1, with the behavior verified against a focused regression case.

Written by the indexing model from the issue text.

Description

Low priority issue, but confusing enough that I thought I'd submit an issue so it's documented.

When using SubhaloPhaseSpace (not sure it this also happens with others), the upid value for all of the satellite galaxies is -1. My understanding is that this upid == -1 indicates that the subhalo is a host halo (the highest in the halo hierarchy), basically a shorthand for saying halo_id == halo_hostid. However, all the satellites are getting upid == -1 even though their halo_id != halo_hostid.

Shortened version: Rather than getting the halo_id for their host halo in the halo_upid column, satellite galaxies are getting upid == -1 when using SubhaloPhaseSpace.

Dominant language
Python
Stars
120
Forks
70
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from astropy/halotools

All issues in astropy/halotools

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.