Skip to content

petab1to2: handle all-empty transformation and distribution columns - #635

Open
dweindl wants to merge 1 commit into
PEtab-dev:mainfrom
dweindl:petab1to2-empty-transformation-columns
Open

dweindl wants to merge 1 commit into
PEtab-dev:mainfrom
dweindl:petab1to2-empty-transformation-columns

Conversation

@dweindl

@dweindl dweindl commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

pandas.read_csv reads an all-empty observableTransformation or noiseDistribution column of a PEtab v1 observable table as float64. v1v2_observable_df then filled the missing values with lin / normal, which emits a Pandas4Warning ("'str' is not supported as a fill value for float64 dtype"). With pandas 4, this will be an error. The columns are now cast to object before filling.

This affects, e.g., Froehlich_CellSystems2018 from the benchmark collection.

🤖 Generated with Claude Code

All-empty `observableTransformation` or `noiseDistribution` columns
are read as `float64`. Filling them with strings emits a
`Pandas4Warning` (an error in pandas 4). Cast to `object` first.

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

codecov-commenter commented Nov 26, 2026 •

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 (73a181e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #635   +/-   ##
=======================================
  Coverage   80.34%   80.34%           
=======================================
  Files          70       70           
  Lines        8505     8505           
  Branches     1561     1561           
=======================================
  Hits         6833     6833           
  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.

@dweindl
dweindl force-pushed the petab1to2-empty-transformation-columns branch from aa07c8d to 73a181e Compare November 26, 2026 14:22
@dweindl dweindl self-assigned this Nov 26, 2026
@dweindl
dweindl marked this pull request as ready for review November 26, 2026 14:49
@dweindl
dweindl requested a review from a team as a code owner November 26, 2026 14:49

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.

2 participants