Skip to content

Conversation

@phaleanopsis
Copy link
Contributor

Some journals (i.e. Nature portfolio) prefer capital "P" for p-values when preparing figures (i.e. "P = 0.027", not "p = 0.027").

This pull request adds p_capitalized as a parameter to PValueFormat (with default set to False to keep current behaviour) to allow easy configuration of the capitalisation of the letter, as well as two tests.

@codecov
Copy link

codecov bot commented Mar 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.44%. Comparing base (1dd7714) to head (c8514ba).
Report is 17 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #172      +/-   ##
==========================================
+ Coverage   91.37%   91.44%   +0.06%     
==========================================
  Files          31       34       +3     
  Lines        2493     2477      -16     
==========================================
- Hits         2278     2265      -13     
+ Misses        215      212       -3     

☔ 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
Owner

@trevismd trevismd left a comment

Choose a reason for hiding this comment

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

Nice feature, thank you for the contribution, @Pentabyteman !

@trevismd trevismd merged commit b5351af into trevismd:master Mar 22, 2025
6 of 12 checks passed
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