Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#564)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Larson <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and larsoner authored Jul 17, 2024
1 parent ed2d4cd commit 0e01097
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# Ruff mne
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
rev: v0.5.2
hooks:
- id: ruff
args: ["--fix"]
Expand Down
4 changes: 2 additions & 2 deletions mne_nirs/statistics/tests/test_statsmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ def test_statsmodel_to_df(func):
df_cha["theta"] = df_cha["theta"] * 1.0e6
roi_model = func("theta ~ -1 + Condition", df_cha, groups=df_cha["ID"]).fit()
df = statsmodels_to_results(roi_model)
assert type(df) == pd.DataFrame
assert isinstance(df, pd.DataFrame)
assert_allclose(df["Coef."]["Condition[A]"], amplitude, rtol=0.1)
assert df["Significant"]["Condition[A]"]
assert df.shape == (8, 8)

roi_model = smf.rlm("theta ~ -1 + Condition", df_cha, groups=df_cha["ID"]).fit()
df = statsmodels_to_results(roi_model)
assert type(df) == pd.DataFrame
assert isinstance(df, pd.DataFrame)
assert_allclose(df["Coef."]["Condition[A]"], amplitude, rtol=0.1)
assert df["Significant"]["Condition[A]"]
assert df.shape == (8, 8)
2 changes: 1 addition & 1 deletion mne_nirs/visualisation/tests/test_visualisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_run_plot_GLM_projection(requires_pyvista):
surface="white",
subjects_dir=subjects_dir,
)
assert type(brain) == mne.viz._brain.Brain
assert isinstance(brain, mne.viz._brain.Brain)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 0e01097

Please sign in to comment.