Skip to content

Commit

Permalink
add error message as my flight starts to board
Browse files Browse the repository at this point in the history
  • Loading branch information
Shotgunosine committed May 6, 2022
1 parent 993362b commit 182cd35
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bids/modeling/statsmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ def __init__(self, level, name, transformations=None, model=None,
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}>"

Expand Down

0 comments on commit 182cd35

Please sign in to comment.