Skip to content

Commit

Permalink
Update hed id verification to allow removal of tags without hedIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
IanCa committed Jul 30, 2024
1 parent e99452f commit 71ea2a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hed/schema/schema_io/ontology_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71ea2a6

Please sign in to comment.