Repository navigation
Total Component Trait - #18794
Total Component Trait#18794
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
1787738 to
ee1f2a8
Compare
|
@nstarman I think this should be private api until we have a refactored trait class Onu. Also I am thinking of creating an issue and creating some tests for these traits. I am also thinking another issue to show example of using it for example create a notebook for matter dominated universe or radiation dominated universe lets say and such. That is the goal of the trait refactoring right ? |
|
Thanks! In the traits.rst can you add an example of Otot being called? |
|
Done as suggested. |
nstarman
left a comment
There was a problem hiding this comment.
I like how this is shaping up.
|
@preshanth, instead of merging in main, it's often better to do a rebase. |
|
I have been rebasing. I did a merge by mistake. My apologies |
nstarman
left a comment
There was a problem hiding this comment.
One small nitpick, otherwise LGTM. Thanks @preshanth!
| ... self.Ok0 = 0.0 | ||
| ... self.Tcmb0 = u.Quantity(Tcmb0, "K") | ||
| ... self.Ogamma0 = Ogamma0 # Photon density parameter | ||
| ... self.is_flat = bool(abs(self.Otot0 - 1.0) < 1e-12) |
There was a problem hiding this comment.
You want me to remove these ? Also because of the rebase it thinks all commits are new and wants another review from you. My apologies for the mess up
|
@preshanth can you rebase / delete the commits that got picked up by merges? E.g. fb600f6 |
Co-authored-by: Nathaniel Starkman <[email protected]>
To match reviewer suggestion Co-authored-by: Nathaniel Starkman <[email protected]>
76d3711 to
60d275e
Compare
|
I just did. Hope it fixed it. |
…private api
Description
This pull request introduces the total component trait in cosmology. It currently has a private api which should be made public upon the implementation of a neutrinos trait class.
Fixes a part of #17150