Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added (working but unpolished) scripts to calculate hot has properties. #137

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions flamingo/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,28 @@ scripts:
title: Wall-clock time per time-bin
section: Run Performance
output_file: wallclock_timebin_hist.png
- filename: scripts/hot_gas_plots.py
caption: X-ray luminosity - Halo mass.
output_file: hgas_Lx.png
section: Hot gas properties
title: X-ray luminosity
- filename: scripts/dummy.py
caption: Hot gas pressure profiles of galaxy groups.
output_file: hgas_P_P500_r.png
section: Hot gas properties
title: Pressure profiles
- filename: scripts/dummy.py
caption: Hot gas density profiles of galaxy groups.
output_file: hgas_rho_r.png
section: Hot gas properties
title: Density profiles
- filename: scripts/dummy.py
caption: Hot gas entropy profiles of galaxy groups.
output_file: hgas_S_S500_r.png
section: Hot gas properties
title: Entropy profiles
- filename: scripts/dummy.py
caption: Local SZ flux−halo mass relation.
output_file: hgas_tSZ.png
section: Hot gas properties

Binary file not shown.
3 changes: 3 additions & 0 deletions flamingo/scripts/dummy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Dummy
"""
Comment on lines +1 to +3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a particular reason that this exists?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dummy was aded as a hacky work around to produce several plots with the same script. That is, we read the particle data only once, make all the calculations (x-ray, entropy, etc) and produce all the plots. Then call the dummy script in the pipeline config.yml to properly link the plots and names in the generated webpage.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dummy script was removed in jemme07#1, since @EvgeniiChaikin implemented a feature that allows creating multiple figures with a single script (SWIFTSIM/pipeline#26).

Loading