Skip to content

v1 lint: require nominalValue for non-estimated parameters - #640

Open
dweindl wants to merge 2 commits into
PEtab-dev:mainfrom
dweindl:fix_nominal_value_required
Open

dweindl wants to merge 2 commits into
PEtab-dev:mainfrom
dweindl:fix_nominal_value_required

Conversation

@dweindl

@dweindl dweindl commented Nov 27, 2026

Copy link
Copy Markdown
Member

check_parameter_df only checked that nominal values of non-estimated parameters are convertible to float, which accepts NaN, i.e., empty cells. Such problems passed validation, and parameter mapping then used NaN. Now, missing values (NaN, None, pd.NA) are reported, consistent with the v2 Parameter model.

Also fixes the classification of non-estimated parameters for string estimate columns, where all parameters were considered non-estimated. The nominal value check now runs after the estimate and parameter ID checks.

Closes #639.

🤖 Generated with Claude Code

dweindl and others added 2 commits November 27, 2026 11:33
`check_parameter_df` only checked that nominal values of non-estimated
parameters are convertible to `float`, which accepts NaN, i.e., empty
cells. Now, missing values (NaN, `None`, `pd.NA`) are reported.

Also fixes the classification of non-estimated parameters for string
`estimate` columns, where all parameters were considered non-estimated.

Closes PEtab-dev#639.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.34%. Comparing base (bacc686) to head (eeaf78b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #640   +/-   ##
=======================================
  Coverage   80.34%   80.34%           
=======================================
  Files          70       70           
  Lines        8505     8507    +2     
  Branches     1561     1562    +1     
=======================================
+ Hits         6833     6835    +2     
  Misses       1180     1180           
  Partials      492      492           

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

No deployments
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.

v1 lint accepts a missing nominalValue for non-estimated parameters

2 participants