We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0edc667 + 6f12003 commit 9797acaCopy full SHA for 9797aca
src/ngio/tables/v1/_roi_table.py
@@ -86,10 +86,10 @@ def _dataframe_to_rois(
86
) -> dict[str, Roi]:
87
"""Convert a DataFrame to a WorldCooROI object."""
88
# Validate the columns of the DataFrame
89
- _required_columns = set(dataframe.columns).intersection(set(required_columns))
90
- if len(_required_columns) != len(required_columns):
+ _missing_columns = set(required_columns).difference(set(dataframe.columns))
+ if len(_missing_columns) != 0:
91
raise NgioTableValidationError(
92
- f"Could not find required columns: {_required_columns} in the table."
+ f"Could not find required columns: {_missing_columns} in the table."
93
)
94
95
extra_columns = set(dataframe.columns).difference(
0 commit comments