Small fixes for cobaya wrapper#75
Merged
Merged
Conversation
…e T model to emphasize the alha attractor role
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #75 +/- ##
=======================================
Coverage 99.09% 99.09%
=======================================
Files 19 19
Lines 2439 2439
=======================================
Hits 2417 2417
Misses 22 22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR makes minor compatibility fixes for running primpy with the Cobaya wrapper, including forwarding additional configuration to PPS derivation and small metadata/version updates.
Changes:
- Allow
calibrate_scale_factorto accept and forward extra kwargs toderive_approx_power. - Improve Cobaya slow-roll PPS wrapper robustness (import fallback, expose
DeltaN_minus1, handlerho_reh_GeV=None). - Update potential display labels and bump version to
2.18.3.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
primpy/potentials.py |
Adjusts TeX labels for Double-Well potentials and changes TmodelPotential.tag. |
primpy/inflation.py |
Adds **kwargs to calibrate_scale_factor and forwards them to derive_approx_power. |
primpy/__version__.py |
Bumps library version to 2.18.3. |
cobaya_wrapper/slowroll_pps.py |
Adds import fallback, exposes DeltaN_minus1, and avoids None comparison for rho_reh_GeV. |
README.rst |
Updates displayed version to 2.18.3. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
…x_power` and add basic test for this kwarg passing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Minor fixes for running with Cobaya.
Checklist:
flake8 --max-line-length 99 primpy tests).pydocstyle --convention=numpy primpy).python -m pytest).README.rstandprimpy/__version__.py.