Skip to content

Commit 0ab910f

Browse files
committed
Merge PRs #20 and #21
3 parents 0dd72f1 + af02c2c + 87b655e commit 0ab910f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ default_language_version:
22
python: python3
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.5.0
5+
rev: v5.0.0
66
hooks:
77
- id: check-added-large-files
88
- id: check-case-conflict
@@ -26,7 +26,7 @@ repos:
2626
types: [text]
2727
exclude: ^(.pre-commit-config.yaml|.github/workflows/test.yml)$
2828
- repo: https://github.com/PyCQA/flake8
29-
rev: 7.0.0
29+
rev: 7.1.1
3030
hooks:
3131
- id: flake8
3232
args: [-j8]
@@ -39,12 +39,12 @@ repos:
3939
- flake8-pyproject
4040
- flake8-string-format
4141
- repo: https://github.com/google/yapf
42-
rev: v0.40.2
42+
rev: v0.43.0
4343
hooks:
4444
- id: yapf
4545
args: [-i]
4646
additional_dependencies: [toml]
4747
- repo: https://github.com/PyCQA/isort
48-
rev: 5.13.2
48+
rev: 6.0.0
4949
hooks:
5050
- id: isort

spm12/regseg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def normw_spm(f_def, files4norm, outpath=None, voxsz=2, intrp=4, bbox=None, matl
492492
list4norm = [f + ',1' for f in files4norm]
493493

494494
if bbox is None:
495-
bb = ml.double([[np.NaN, np.NaN, np.NaN], [np.NaN, np.NaN, np.NaN]])
495+
bb = ml.double([[np.nan, np.nan, np.nan], [np.nan, np.nan, np.nan]])
496496
elif isinstance(bbox, np.ndarray) and bbox.shape == (2, 3):
497497
bb = ml.double(bbox.tolist())
498498
elif isinstance(bbox, list) and len(bbox) == 2:

0 commit comments

Comments
 (0)