Skip to content

Instantly share code, notes, and snippets.

@zonca
Created February 12, 2026 23:29
Show Gist options
  • Select an option

  • Save zonca/f606b2122658bafbcdb4a9d410f3cdd6 to your computer and use it in GitHub Desktop.

Select an option

Save zonca/f606b2122658bafbcdb4a9d410f3cdd6 to your computer and use it in GitHub Desktop.
One-shot D_ell cross-check: so_gaussian_fg vs PySM Gaussian foregrounds
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

One-shot cross-check: so_gaussian_fg vs PySM Gaussian foregrounds

This gist contains a one-shot executed notebook comparing the original 1cosmologist/so_gaussian_fg power spectrum implementation against the PySM Gaussian foreground implementation.

Scope:

  • D_ell comparison at pivot frequencies for EE/BB.
  • Original code has no TT model, so TT is not compared.

Result summary:

  • dust_EE max abs/rel diff: 0 / 0
  • dust_BB max abs/rel diff: 0 / 0
  • sync_EE max abs/rel diff: 0 / 0
  • sync_BB max abs/rel diff: 0 / 0

See so_gaussian_fg_crosscheck.executed.ipynb for embedded plots and full details.

{
"comparison": {
"dust_EE": {
"max_abs_diff": 0.0,
"max_rel_diff": 0.0,
"ell80_original": 56.0,
"ell80_pysm": 56.0
},
"dust_BB": {
"max_abs_diff": 0.0,
"max_rel_diff": 0.0,
"ell80_original": 28.0,
"ell80_pysm": 28.0
},
"sync_EE": {
"max_abs_diff": 0.0,
"max_rel_diff": 0.0,
"ell80_original": 9.0,
"ell80_pysm": 9.0
},
"sync_BB": {
"max_abs_diff": 0.0,
"max_rel_diff": 0.0,
"ell80_original": 1.6,
"ell80_pysm": 1.6
}
},
"notes": [
"Compares D_ell at pivot frequencies for EE/BB.",
"Original so_gaussian_fg has no TT model.",
"Uses original GaussianForegroundSimulator.dust_cl/sync_cl code path."
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment