Skip to content

Commit

Permalink
fix: E721 issue in test_confounds.py
Browse files Browse the repository at this point in the history
  • Loading branch information
synchon committed Sep 11, 2023
1 parent 434aa01 commit 6ad43e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion julearn/transformers/tests/test_confounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def test_confound_set_confounds(
df_cofound_removed = confound_remover.fit_transform(df_X_confounds)

np.random.seed(42)
conf_as_feat = confounds if type(confounds) is list else [confounds]
conf_as_feat = confounds if isinstance(confounds, list) else [confounds]
df_confounds = df_X_confounds.loc[:, conf_as_feat] # type: ignore
confound_regressions = [
model_class().fit(
Expand Down

0 comments on commit 6ad43e5

Please sign in to comment.