Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#11883)
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 Aug 15, 2023
1 parent 039122a commit 7c5ab0a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ repos:

# Ruff mne
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.282
rev: v0.0.284
hooks:
- id: ruff
name: ruff mne
files: ^mne/

# Ruff tutorials and examples
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.282
rev: v0.0.284
hooks:
- id: ruff
name: ruff tutorials and examples
Expand Down
2 changes: 1 addition & 1 deletion mne/minimum_norm/resolution_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _get_psf_ctf(

for verts in verts_all:
# get relevant PSFs or CTFs for specified vertices
if type(verts) is int:
if isinstance(verts, int):
verts = [verts] # to keep array dimensions
funcs = resmat[:, verts]

Expand Down
4 changes: 2 additions & 2 deletions mne/tests/test_source_estimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,13 @@ def attempt_assignment(stc, attr, val):

# Changing .tmin or .tstep re-computes .times
stc.tmin = 1
assert type(stc.tmin) == float
assert isinstance(stc.tmin, float)
assert_array_almost_equal(
stc.times, [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9]
)

stc.tstep = 1
assert type(stc.tstep) == float
assert isinstance(stc.tstep, float)
assert_array_almost_equal(
stc.times, [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0]
)
Expand Down

0 comments on commit 7c5ab0a

Please sign in to comment.