Skip to content

Add new column to identify source of data#25

Merged
php1ic merged 10 commits intomainfrom
user_data
Apr 18, 2026
Merged

Add new column to identify source of data#25
php1ic merged 10 commits intomainfrom
user_data

Conversation

@php1ic
Copy link
Copy Markdown
Owner

@php1ic php1ic commented Apr 11, 2026

Start working on #20

With this new column, users can add their own data and set this column
to a non-zero value to allow simple filtering.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 11, 2026

Codecov Report

❌ Patch coverage is 97.67442% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 99.73%. Comparing base (18d0522) to head (0a03625).

Files with missing lines Patch % Lines
src/nuclearmasses/mass_table.py 97.36% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
- Coverage   99.85%   99.73%   -0.13%     
==========================================
  Files          12       12              
  Lines         710      751      +41     
==========================================
+ Hits          709      749      +40     
- Misses          1        2       +1     

☔ 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 added 9 commits April 12, 2026 15:01
To start with we will use json format and only allow columns that match
those that already exist in the table.
The function call has been updated to the allow a variety of types to be
passed in as the data. This helps with testing, but also makes sense as
a thing to do so it isn't just to avoid refactoring.
Cloning the repo is not enough, you actually need to install.
Add the table year to the output so the data matches the description.
The big table of data with values for gold is too dominant in the README
file so update to an atom with less isotopes.
We allowed this by type hinting, but would fail if it actually happened.
Update function and tests so raw string can be used.
Show examples of how user data can be added to the main dataframe.
We want to be as flexible as possible so don't want to be too limiting
on how the user can interact with the function.
@php1ic php1ic merged commit f4afd79 into main Apr 18, 2026
13 checks passed
@php1ic php1ic deleted the user_data branch April 18, 2026 10:23
@php1ic php1ic mentioned this pull request Apr 18, 2026
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