add error message as my flight starts to board
@@ -288,6 +288,12 @@ class BIDSStatsModelsNode:
group_by.append(self.level)
self.group_by = group_by
+ # Check for intercept only run level model and throw an error
+ if (self.level == 'run') and (self.model['X'] == [1]):
+ raise NotImplementedError("Run level intercept only models are not currently supported."
+ "If this is a feature you need, please leave a comment at"
+ "https://github.com/bids-standard/pybids/issues/852.")
+
def __repr__(self):
return f"<{self.__class__.__name__}[{self.level}] {self.name}>"
