Check if base_ents is not None
@@ -40,6 +40,7 @@ class Node(object):
variable : BIDSVariable
The Variable to add to the list.
"""
+ if self.base_ents is not None:
for e, val in self.base_ents.items():
if e in variable.entities and variable.entities[e] != val:
raise ValueError("Variable and node entity mismatch.")
