Skip to content

Commit d77c17d

Browse files
committed
update SPM versions to check
1 parent 2b76f4c commit d77c17d

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ initCppSpm
6060
```
6161

6262
Please see our
63-
[documentation](https://cpp_spm.readthedocs.io/en/latest/index.html) for
64-
more detailed instructions.
63+
[documentation](https://cpp_spm.readthedocs.io/en/latest/index.html) for more
64+
detailed instructions.
6565

6666
### Dependencies
6767

@@ -76,7 +76,7 @@ For instructions see the following links:
7676
| ---------------------------------------------------------- | ------------ |
7777
| [Matlab](https://www.mathworks.com/products/matlab.html) | 20??? |
7878
| or [octave](https://www.gnu.org/software/octave/) | 4.? |
79-
| [SPM12](https://www.fil.ion.ucl.ac.uk/spm/software/spm12/) | v7487 |
79+
| [SPM12](https://www.fil.ion.ucl.ac.uk/spm/software/spm12/) | >7219 |
8080

8181
<!-- lint enable -->
8282

@@ -109,8 +109,8 @@ This can perform:
109109
The core functions are in the `src` folder.
110110

111111
Please see our
112-
[documentation](https://cpp_spm.readthedocs.io/en/latest/index.html) for
113-
more info.
112+
[documentation](https://cpp_spm.readthedocs.io/en/latest/index.html) for more
113+
info.
114114

115115
## Octave compatibility
116116

@@ -148,12 +148,14 @@ Constant are written in `UPPERCASE`.
148148
There is a [pre-commit hook](https://pre-commit.com/) that you can use to
149149
reformat files as you commit them.
150150

151-
Install pre-commit by using our `requirements.txt` file
151+
Install pre-commit by using our `requirements.txt` file
152+
152153
```bash
153154
pip install -r requirements.txt
154155
```
155156

156157
Install the hook
158+
157159
```bash
158160
pre-commit install
159161
```

src/utils/checkDependencies.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function checkDependencies()
1313
fprintf('Checking dependencies\n');
1414

1515
SPM_main = 'SPM12';
16-
SPM_sub = '7487';
16+
SPM_sub = 7219;
1717

1818
%% check spm version
1919
try
@@ -24,7 +24,7 @@ function checkDependencies()
2424

2525
fprintf(' Using %s %s\n', a, b);
2626

27-
if ~strcmp(a, SPM_main) || str2num(SPM_sub) < 7219
27+
if ~strcmp(a, SPM_main) || str2num(b) < 7219
2828
str = sprintf('%s %s %s.\n%s', ...
2929
'The current version SPM version is less than', SPM_main, SPM_sub, ...
3030
'Update with: spm_update update');

0 commit comments

Comments
 (0)