Skip to content

Convert half-life column labels to be consistent with other parameters#31

Merged
php1ic merged 5 commits into
mainfrom
hl_naming
May 16, 2026
Merged

Convert half-life column labels to be consistent with other parameters#31
php1ic merged 5 commits into
mainfrom
hl_naming

Conversation

@php1ic

@php1ic php1ic commented May 15, 2026

Copy link
Copy Markdown
Owner

We had HalfLifeErrorSeconds where all other parameters have Error at the end. Update to be consistent.

While working on this I also decided we should use pd.NA for missing or non-existent data. We can achieve this by ensuring to used pandas nullable types, so in this PR it's mainly changing float64 to Float64. This relates to #30.

I also tidied up the parse_half_life function used when reading the NUBASE data. No change to functionality, just some changes around how often we were switching between different types to apply various modifications.

php1ic added 4 commits May 9, 2026 16:22
The pattern for columns names is that parameter X will have an
associated column XError for the uncertainty in a measurement. This was
not followed for the HalfLifeSeconds calculated column but this commit
corrects that.
We were storing an empty string as a value rather than converting to
null or missing. Add an empty string as a na value during parsing.
I thought we were already doing this, but turns out only for bool, ints
and strings, and not for floats.
We did a lot of casting to different types at various points in the
function. We now cast as string at the start so we can do all the things
we need to do.
@codecov-commenter

codecov-commenter commented May 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.55%. Comparing base (6c4a1de) to head (fb9d495).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
- Coverage   99.55%   99.55%   -0.01%     
==========================================
  Files          15       15              
  Lines         451      448       -3     
==========================================
- Hits          449      446       -3     
  Misses          2        2              

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

@php1ic php1ic merged commit 91d8c03 into main May 16, 2026
13 checks passed
@php1ic php1ic deleted the hl_naming branch May 16, 2026 15:51
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