ColmTalbot / gwpopulation

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

FEAT: allow arbitrary scipy modifications #91

Closed ColmTalbot closed 4 months ago

ColmTalbot commented 4 months ago

I wanted to be able to use scipy.linalg.toeplitz and that wasn't possible to vary the backend for.

I added a new more flexible interface to provide specific scipy functionality manually using a gwpopulation.others option.

I also added an example of how to specify this to the docs and moved the gwpopulation native ones to setup.cfg to avoid having to special case the internal changes.

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 82.35294% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 94.74%. Comparing base (0dbe48d) to head (23863b0).

Files Patch % Lines
gwpopulation/backend.py 82.35% 3 Missing :warning:

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #91 +/- ## ========================================== - Coverage 94.97% 94.74% -0.23% ========================================== Files 11 11 Lines 795 799 +4 ========================================== + Hits 755 757 +2 - Misses 40 42 +2 ``` | [Flag](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/91/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/91/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot) | `94.62% <82.35%> (-0.22%)` | :arrow_down: | | [python3.11](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/91/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot) | `94.62% <82.35%> (-0.22%)` | :arrow_down: | | [python3.9](https://app.codecov.io/gh/ColmTalbot/gwpopulation/pull/91/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Colm+Talbot) | `94.61% <82.35%> (-0.22%)` | :arrow_down: | 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.

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