Skip to content

Commit

Permalink
TEST: Make phenotype an exception for now
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Feb 16, 2024
1 parent dc4de69 commit 35ff261
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/schemacode/bidsschematools/data/tests/test_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ def test_rule_objects(schema_obj):

# Build a list of items mentioned in rules, but not found in objects.
if use not in object_values:
if (use, object_type) == ("phenotype", "datatypes"):
# Special case: phenotype is a top-level directory
# that acts like a datatype, but we don't want to
# define it that way in the glossary, currently.
continue
temp_path = path[:]
if is_list:
temp_path[-1] += f"[{i_use}]"
Expand Down

0 comments on commit 35ff261

Please sign in to comment.