Skip to content

Small fixes for cobaya wrapper#75

Merged
lukashergt merged 9 commits into
masterfrom
small_fixes_for_cobaya
Mar 4, 2026
Merged

Small fixes for cobaya wrapper#75
lukashergt merged 9 commits into
masterfrom
small_fixes_for_cobaya

Conversation

@lukashergt
Copy link
Copy Markdown
Owner

@lukashergt lukashergt commented Mar 4, 2026

Minor fixes for running with Cobaya.

Checklist:

  • I have performed a self-review of my own code.
  • My code is PEP8 compliant (flake8 --max-line-length 99 primpy tests).
  • My code contains compliant docstrings (pydocstyle --convention=numpy primpy).
  • New and existing unit tests pass locally with my changes (python -m pytest).
  • I have added tests that prove my fix is effective or that my feature works.
  • I have appropriately incremented the semantic version number in both README.rst and primpy/__version__.py.

@lukashergt lukashergt self-assigned this Mar 4, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.09%. Comparing base (7fb3614) to head (a5432dd).
⚠️ Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

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_factor to accept and forward extra kwargs to derive_approx_power.
  • Improve Cobaya slow-roll PPS wrapper robustness (import fallback, expose DeltaN_minus1, handle rho_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.

Comment thread cobaya_wrapper/slowroll_pps.py
Comment thread primpy/inflation.py
Comment thread primpy/potentials.py
Comment thread primpy/inflation.py
@lukashergt lukashergt merged commit 3d79b1c into master Mar 4, 2026
18 of 25 checks passed
@lukashergt lukashergt deleted the small_fixes_for_cobaya branch March 4, 2026 16:54
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