Repository navigation
Conversation
Creating v2 tables from DataFrames or TSV files now raises `MissingColumnsError` if required columns are missing, naming the table, the missing columns, and the file. Previously, this resulted in unspecific pydantic errors or `KeyError`s, or was silently accepted (e.g., a missing `estimate` column defaulted to `True`). `petablint` reports this error without a traceback. `BaseTable.from_df` now handles `None`/empty input, moves named index levels to columns, and checks required columns before delegating to the new abstract `_from_df`. The sciml `HybridizationTable` gets the same check. Relates to PEtab-dev#369. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #629 +/- ##
==========================================
+ Coverage 80.18% 80.33% +0.15%
==========================================
Files 70 70
Lines 8442 8463 +21
Branches 1544 1544
==========================================
+ Hits 6769 6799 +30
+ Misses 1182 1177 -5
+ Partials 491 487 -4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Rows with an empty `conditionId` in the condition table or an empty `experimentId` in the experiment table were silently dropped by `groupby` in `ConditionTable.from_df` and `ExperimentTable.from_df`, so neither loading nor linting reported them. Raise an `EmptyIdError` instead, naming the table, the rows, and the file. Add `TableError` as common base class of `EmptyIdError` and `MissingColumnsError`, and report it in `petablint` without a traceback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dweindl
force-pushed
the
v2-empty-condition-id
branch
from
November 25, 2026 15:34
f10d96d to
ef7cff1
Compare
dweindl
marked this pull request as ready for review
November 25, 2026 15:38
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #610; only the last commit is new here.
Rows with an empty
conditionIdin the condition table or an emptyexperimentIdin the experiment table were silently dropped bygroupbyinConditionTable.from_dfandExperimentTable.from_df, so neither loading nor linting reported them. They now raiseEmptyIdError, naming the table and the file, followed by the affected rows (at most 10), e.g.:TableErroris the new common base class ofEmptyIdErrorandMissingColumnsError.petablintreports anyTableErrorwithout a traceback.🤖 Generated with Claude Code