Skip to content

Add Agora and Half dome SZ models and comparison notebook#244

Merged
zonca merged 2 commits intogalsci:mainfrom
zonca:agora_sz_onecommit
Mar 20, 2026
Merged

Add Agora and Half dome SZ models and comparison notebook#244
zonca merged 2 commits intogalsci:mainfrom
zonca:agora_sz_onecommit

Conversation

@zonca
Copy link
Copy Markdown
Member

@zonca zonca commented Jan 27, 2026

No description provided.

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@zonca zonca changed the title Add Agora SZ models and SZ comparison updates Add Agora and Half dome SZ models and comparison notebook Jan 27, 2026
@zonca
Copy link
Copy Markdown
Member Author

zonca commented Jan 28, 2026

@zonca
Copy link
Copy Markdown
Member Author

zonca commented Jan 28, 2026

As discussed on the call we would like to have one more person take a look at this before merging if you are interested please reply on the issue. The idea would be to execute the Notebook yourself and look for inconsistency. It is also useful to double check that the documentation is accurate.

@eunseongleee
Copy link
Copy Markdown

I will work on this!

@eunseongleee
Copy link
Copy Markdown

I encountered a small issue when generating the maps, as the notebook could not find the appropriate data directory in which to save the files. I resolved this by adding os.makedirs(os.path.dirname(cache_file), exist_ok=True) before writing the maps, although this may simply be due to the notebook being located temporarily in a different folder. Aside from this, I have reviewed and executed the notebook and can confirm that it runs correctly with no inconsistencies. The documentation describing the different simulations appears accurate.

@alexlague
Copy link
Copy Markdown

I can also check the notebook once the kSZ model from half-dome is available (looking at issue 204, it may not yet be finalized).

@zonca
Copy link
Copy Markdown
Member Author

zonca commented Feb 11, 2026

@alexlague I would like to merge this first, so if you can review the notebook now I think it is better

@alexlague
Copy link
Copy Markdown

@zonca Eunseong's fix also worked for me and the notebook executed without issues.

@zonca
Copy link
Copy Markdown
Member Author

zonca commented Feb 16, 2026

ok, can you do a PR with that fix?

@zonca
Copy link
Copy Markdown
Member Author

zonca commented Feb 17, 2026

@eunseongleee @alexlague we have a PySM call tomorrow, can you coordinate between the 2 of you and prepare a presentation for 10/15 min about the new components? either 1 of you can present or both, you can do slides or just walk through notebooks. We want to give an overview of the new components to the group and gather some feedback.

@alexlague
Copy link
Copy Markdown

@zonca Sure, we can share a few slides. Eunseong volunteered to cover tSZ, and I can do kSZ. (Currently working on the PR mentioned above.)

@zonca
Copy link
Copy Markdown
Member Author

zonca commented Feb 18, 2026

discussed today during the panexp call. added a documentation fix in 336da2b mentioning the monopole, the fact that they are different realization and the large scale features in websky kSZ.

@seclark @brandonshensley this is ready to merge, can you please take a final look at the docs?
https://github.com/galsci/pysm/pull/244/changes#diff-d606c1bcd72689c8bb949dcdafe4bcd0420da5cbaa7daf9614f0757734cffaf7

@zonca
Copy link
Copy Markdown
Member Author

zonca commented Mar 10, 2026

Docs preview for the updated SZ section: https://pysm3--244.org.readthedocs.build/en/244/models.html#sunyaevzeldovich-emission

@brandonshensley
Copy link
Copy Markdown
Contributor

Docs preview for the updated SZ section: https://pysm3--244.org.readthedocs.build/en/244/models.html#sunyaevzeldovich-emission

Looks great! Just a few notes on the docs:

  1. It looks like the original paper calls the sims "Websky" (not WebSky). Should we change throughout?
  2. Is tsz1 lensed or unlensed? The docs note this for some of the other models, thought not tsz4 or ksz1.

@mremazei
Copy link
Copy Markdown

It might be useful to mention in the docs (if this is not already done somewhere) that some of these SZ models are correlated with other components of the PySM, such as some of the CIB and CMB lensing models. This is the case, I believe, for the Websky-based templates, while other templates correspond to independent realizations of the LSS.

It might be worth warning users that if they run PySM simulations using the lensed CMB realization from Websky but the tSZ model from Agora (for example), they should not expect correlations between them, as they come from different realizations of the LSS.

@seclark
Copy link
Copy Markdown

seclark commented Mar 11, 2026

Agreed with @mremazei -- it might be worth an explicit "recipe" for which components are correlated with one another (especially because it's not as simple as different components with the same number).

Also it looks like the presets.cfg link points to the wrong place?

@zonca
Copy link
Copy Markdown
Member Author

zonca commented Mar 20, 2026

Thanks for the reviews. Addressed the doc comments in this PR:

  • Renamed docs prose from WebSky to Websky
  • Fixed the presets.cfg link in the model summary
  • Clarified the realization / lensing status of tsz1, tsz4, and ksz1
  • Added guidance on which Websky, Agora, and HalfDome components are correlated and which combinations should be treated as independent realizations
  • Added the SZ comparison notebook to the docs toctree

@zonca zonca force-pushed the agora_sz_onecommit branch from 1f2334b to 6bd6d82 Compare March 20, 2026 23:06
@zonca zonca merged commit 16cd6d8 into galsci:main Mar 20, 2026
4 checks passed
@zonca zonca deleted the agora_sz_onecommit branch March 20, 2026 23:24
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.

6 participants