@VirgileFritsch Sorry, I did not read this PR yet so I haven't followed the discussions.

Your test fails here. You ask for an integer substitution but `n_subjects` is None. Also, I'm not in favor of raising a warning if n_subjects is None. This means that the user will get a warning by calling the function with its default parameters.