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 Apr 26, 2024
1 parent 8304243 commit 1bf8f3d
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 @@ -87,6 +87,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 1bf8f3d

Please sign in to comment.