Skip to content

Commit

Permalink
Fix check if that should be top level when writing
Browse files Browse the repository at this point in the history
  • Loading branch information
IanCa committed Mar 25, 2024
1 parent 86172d9 commit 6565a34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hed/schema/schema_io/schema2base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def _output_tags(self, tags):
tag = tag_entry.name
level = tag.count("/")

if not tag_entry.has_attribute(HedKey.InLibrary):
# Don't adjust if we're a top level tag(if this is a rooted tag, it will be re-adjusted below)
if not tag_entry.parent_name:
level_adj = 0
if level == 0:
root_tag = self._write_tag_entry(tag_entry, schema_node, level)
Expand Down

0 comments on commit 6565a34

Please sign in to comment.