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

Calculate stellar birth pressure #62

Merged
merged 4 commits into from
Jan 19, 2024

Conversation

robjmcgibbon
Copy link
Collaborator

  • Add StellarBirthPressure properties
  • Replace LogAverage calculations with median for StellarBirthDensity and StellarBirthTemperature

- Add StellarBirthPressure
- Replace LogAverage with Median
Conflicts:
	property_table.py
	subhalo_properties.py
Copy link
Collaborator

@EvgeniiChaikin EvgeniiChaikin left a comment

Choose a reason for hiding this comment

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

Almost all looks good!

One remaining step is to update aperture properties, which also contain LogarithmicallyAveragedStellarBirthDensity

https://github.com/SWIFTSIM/SOAP/blob/calculate_stellar_birth_temperature/aperture_properties.py#L2885C14-L2885C56

This version of SOAP will not be happy to run because LogarithmicallyAveragedStellarBirthDensity exists in aperture properties but has been removed from property_table.py

Probably the easiest fix would be to just remove

"LogarithmicallyAveragedStellarBirthDensity",
"MaximumStellarBirthDensity",
"MinimumStellarBirthDensity"

from aperture properties because we currently only use those fields as part of subhalo properties.

@robjmcgibbon
Copy link
Collaborator Author

Good catch, yep I've just updated aperture_properties

@EvgeniiChaikin
Copy link
Collaborator

Thanks!!

@EvgeniiChaikin EvgeniiChaikin merged commit d74675a into colibre Jan 19, 2024
@EvgeniiChaikin EvgeniiChaikin deleted the calculate_stellar_birth_temperature branch January 19, 2024 15:03
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.

2 participants