From 71ea2a6053a8f670ca25a79825ed5f09880e0d60 Mon Sep 17 00:00:00 2001 From: IanCa Date: Tue, 30 Jul 2024 16:32:13 -0500 Subject: [PATCH] Update hed id verification to allow removal of tags without hedIDs --- hed/schema/schema_io/ontology_util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hed/schema/schema_io/ontology_util.py b/hed/schema/schema_io/ontology_util.py index 8d72fda6..62769400 100644 --- a/hed/schema/schema_io/ontology_util.py +++ b/hed/schema/schema_io/ontology_util.py @@ -179,6 +179,9 @@ def _verify_hedid_matches(section, df, unused_tag_ids): df_id = row[constants.hed_id] entry = section.get(label) if not entry: + # Neither side has a hedID, so nothing to do. + if not df_id: + continue hedid_errors += schema_util.format_error(row_number, row, f"'{label}' does not exist in schema file only the spreadsheet.") continue