Skip to content

Update lightcone generators according to new naming conventions in diffhalos for galaxy weights#416

Merged
aphearin merged 3 commits into
mainfrom
diffhalos_weights_update
May 6, 2026
Merged

Update lightcone generators according to new naming conventions in diffhalos for galaxy weights#416
aphearin merged 3 commits into
mainfrom
diffhalos_weights_update

Conversation

@aphearin
Copy link
Copy Markdown
Collaborator

@aphearin aphearin commented May 6, 2026

This PR updates the lightcone generators in diffsky according to the corresponding updates brought into diffhalos with ArgonneCPAC/diffhalos#39.

  • lc_data.cen_weight equals the HMF weight for centrals, and for satellites equals the HMF weight of the associated host
  • lc_data.sat_weight equals 1 for centrals, and equals <Nsat(Msub) | Mhost>

Now the quantity sat_weight can be passed directly to compute_x_tot_from_x_in_situ without any rigamarole. Also, when downstream users of weighted lightcones need to compute weighted photometry, e.g. using diffndhist.py and other similar calculations, the weights used in the histograms should be gal_weight, defined as follows:

gal_weight = halopop.cen_weight * halopop.sat_weight

…ventions in diffhalos for the weights: lc_data.nhalos --> lc_data.cen_weights, and lc_data.nhalos_host --> lc_data.sat_weight. Note that these are not straight search-and-replace changes, due to changes in the meaning of the variables. See PR notes for details.
@aphearin aphearin merged commit 367ec2a into main May 6, 2026
11 checks passed
@aphearin aphearin deleted the diffhalos_weights_update branch May 6, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant