ColmTalbot / gwpopulation

CPU/GPU agnostic gravitational-wave population inference
https://colmtalbot.github.io/gwpopulation/
MIT License
31 stars 46 forks source link

Fix cupy numpy switching #73

Closed ColmTalbot closed 11 months ago

ColmTalbot commented 11 months ago

This is a simplified version of #45 that removes the jax backend and just applies some fixes for switching between numpy and cupy.

codecov-commenter commented 11 months ago

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (fd07a67) 87.40% compared to head (b6a6547) 88.94%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #73 +/- ## ========================================== + Coverage 87.40% 88.94% +1.54% ========================================== Files 11 11 Lines 722 714 -8 ========================================== + Hits 631 635 +4 + Misses 91 79 -12 ``` | [Flag](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot) | Coverage Δ | | |---|---|---| | [python3.10](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot) | `88.94% <92.77%> (+1.54%)` | :arrow_up: | | [python3.11](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot) | `88.94% <92.77%> (+1.54%)` | :arrow_up: | | [python3.9](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot) | `89.06% <92.77%> (+1.54%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot) | Coverage Δ | | |---|---|---| | [gwpopulation/\_\_init\_\_.py](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot#diff-Z3dwb3B1bGF0aW9uL19faW5pdF9fLnB5) | `81.82% <100.00%> (+44.98%)` | :arrow_up: | | [gwpopulation/backend.py](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot#diff-Z3dwb3B1bGF0aW9uL2JhY2tlbmQucHk=) | `100.00% <100.00%> (ø)` | | | [gwpopulation/hyperpe.py](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot#diff-Z3dwb3B1bGF0aW9uL2h5cGVycGUucHk=) | `93.22% <100.00%> (+0.16%)` | :arrow_up: | | [gwpopulation/models/mass.py](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot#diff-Z3dwb3B1bGF0aW9uL21vZGVscy9tYXNzLnB5) | `100.00% <100.00%> (ø)` | | | [gwpopulation/models/redshift.py](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot#diff-Z3dwb3B1bGF0aW9uL21vZGVscy9yZWRzaGlmdC5weQ==) | `98.25% <100.00%> (+0.03%)` | :arrow_up: | | [gwpopulation/models/spin.py](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot#diff-Z3dwb3B1bGF0aW9uL21vZGVscy9zcGluLnB5) | `95.65% <100.00%> (ø)` | | | [gwpopulation/vt.py](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot#diff-Z3dwb3B1bGF0aW9uL3Z0LnB5) | `96.00% <100.00%> (ø)` | | | [gwpopulation/models/interped.py](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot#diff-Z3dwb3B1bGF0aW9uL21vZGVscy9pbnRlcnBlZC5weQ==) | `18.75% <50.00%> (ø)` | | | [gwpopulation/utils.py](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/73?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot#diff-Z3dwb3B1bGF0aW9uL3V0aWxzLnB5) | `87.93% <66.67%> (-7.90%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.