Skip to content

Commit

Permalink
Merge pull request #999 from IanCa/develop
Browse files Browse the repository at this point in the history
Update hed id verification to allow removal of tags without hedIDs
  • Loading branch information
VisLab authored Jul 31, 2024
2 parents e99452f + 71ea2a6 commit d9196f6
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 d9196f6

Please sign in to comment.