Skip to content

Commit ca6a17f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b6be0ec commit ca6a17f

File tree

402 files changed

+2129
-2225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

402 files changed

+2129
-2225
lines changed

.github/workflows/run_tests.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: tests and coverage
22

33
# Uses the cron schedule for github actions
4-
#
4+
#
55
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
6-
#
6+
#
77
# ┌───────────── minute (0 - 59)
88
# │ ┌───────────── hour (0 - 23)
99
# │ │ ┌───────────── day of the month (1 - 31)
1010
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
1111
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
12-
# │ │ │ │ │
12+
# │ │ │ │ │
1313
# │ │ │ │ │
1414
# │ │ │ │ │
1515
# * * * * *
@@ -39,7 +39,7 @@ jobs:
3939
sudo apt-get -y install octave liboctave-dev
4040
sudo apt-get -y install nodejs npm
4141
42-
- name: Clone cpp_spm
42+
- name: Clone cpp_spm
4343
uses: actions/checkout@v2
4444
with:
4545
submodules: true
@@ -58,20 +58,19 @@ jobs:
5858
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
5959
make -C MOxUnit install
6060
git clone https://github.com/MOcov/MOcov.git --depth 1
61-
make -C MOcov install
61+
make -C MOcov install
6262
6363
- name: Add bids-matlab
64-
run: |
65-
git clone https://github.com/bids-standard/bids-matlab.git --depth 1
66-
64+
run: |
65+
git clone https://github.com/bids-standard/bids-matlab.git --depth 1
66+
6767
- name: Update octave path
6868
run: |
6969
octave $OCTFLAGS --eval "initCppRoi; savepath();"
70-
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'bids-matlab')); savepath();"
70+
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'bids-matlab')); savepath();"
7171
7272
- name: Run tests
7373
run: |
7474
octave $OCTFLAGS --eval "run_tests"
7575
cat test_report.log | grep 0
76-
bash <(curl -s https://codecov.io/bash)
77-
76+
bash <(curl -s https://codecov.io/bash)

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,3 @@ envs/*
2323
demos/*/*.json
2424
demos/*/*/*.json
2525
demos/*/derivatives
26-
27-
28-

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ formats:
2323
python:
2424
version: 3.7
2525
install:
26-
- requirements: requirements.txt
26+
- requirements: requirements.txt

lib/marsbar-0.44/@mardo/adjusted_data.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
function Ya = adjusted_data(D, Ic)
22
% Return adjusted data for estimated design and contrast no
33
% FORMAT Ya = adjusted_data(D, Ic)
4-
%
4+
%
55
% D - Estimated marsbar design
66
% Ic - Contrast number to adjust for
7-
%
7+
%
88
% Outputs
99
% Ya - Adjusted data, N by M, where N is number of time points
1010
% and M is number of regions in estimated marsbar design
11-
%
11+
%
1212
% e.g
1313
% E = estimate(D, Y);
1414
% [E Ic] = add_contrasts(E, 'task', 'T', [1 0 0]);
1515
% Ya = adjusted_data(E, Ic);
16-
%
16+
%
1717
% Matthew Brett
1818

1919
if nargin < 2

lib/marsbar-0.44/@mardo/betas.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function r = betas(o)
22
% method to get estimated betas
3-
%
3+
%
44
% $Id$
55

66
if ~is_mars_estimated(o)
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
function bmrs = block_mean_rows(D)
22
% method returns rows for means for blocks in design
3-
%
3+
%
44
% $Id$
55

66
bmrs = [];
77
SPM = des_struct(D);
8-
bmrs = SPM.xX.iB;
9-
8+
bmrs = SPM.xX.iB;
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
function bms = block_means(D)
22
% method returns means for blocks in design
3-
%
3+
%
44
% Inputs
55
% D - design object
66
%
77
% Outputs
88
% bms - means over block. Returns B x N matrix
99
% where B is number of blocks, and N is number
10-
% of ROIs
10+
% of ROIs
1111
%
1212
% $Id$
1313

@@ -16,5 +16,3 @@
1616
error('Design does not yet have data');
1717
end
1818
bms = summary_block_means(data(D));
19-
20-

lib/marsbar-0.44/@mardo/cd_images.m

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
%
55
% Synopsis
66
% D = cd_images(D); % get new path from GUI
7-
% D = cd_images(D, '/new/root/path');
7+
% D = cd_images(D, '/new/root/path');
88
% D = cd_images(D, '/new/root/path', 1); % force byteswap
9-
% D = cd_images(D, '/new/root/path', 1); % prevent byteswap
10-
%
9+
% D = cd_images(D, '/new/root/path', 1); % prevent byteswap
10+
%
1111
% D - mardo design
1212
% newpath - path to replace common path of files in analysis [GUI]
13-
% byteswap - whether to indicate byte swapping in vol structs
13+
% byteswap - whether to indicate byte swapping in vol structs
1414
% [determined from images by default]
15-
%
15+
%
1616
% $Id$
17-
17+
1818
if nargin < 2
1919
newpath = spm_get(-1, '', 'New directory root for files');
2020
end
@@ -35,7 +35,7 @@
3535
n = length(VY);
3636
strout = strvcat(VY(:).fname);
3737
msk = diff(strout+0)~=0; % common path
38-
d1 = min(find(sum(msk,1)));
38+
d1 = min(find(sum(msk,1)));
3939
d1 = max([find(strout(1,1:d1) == other_filesep | strout(1,1:d1) == filesep) 0]);
4040
ffnames = strout(:,d1+1:end); % common path removed
4141
tmp = ffnames == other_filesep; % filesep exchanged for this platform
@@ -48,7 +48,7 @@
4848
if ~exist(nfnames{1}, 'file')
4949
error(['Cannot find first file here: ' nfnames{1}]);
5050
end
51-
if isempty(byteswap)
51+
if isempty(byteswap)
5252
byteswap = mars_vol_utils('is_swapped_wrong', VY(1));
5353
end
5454

@@ -58,6 +58,6 @@
5858
if verbose(D)
5959
disp('Images vols byteswapped');
6060
end
61-
end
61+
end
6262

6363
D = set_images(D, VY);

lib/marsbar-0.44/@mardo/contrasts.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
function r = contrasts(o, xcon)
22
% method to get or set contrasts
3-
%
3+
%
44
% $Id$
5-
5+
66
if nargin < 2
77
r = get_contrasts(o);
88
else

lib/marsbar-0.44/@mardo/data.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
function r = data(o, Y)
2-
% method to get or set data object
3-
%
2+
% method to get or set data object
3+
%
44
% $Id$
5-
5+
66
if nargin < 2
77
r = get_data(o);
88
else
99
r = set_data(o, Y);
10-
end
10+
end

0 commit comments

Comments
 (0)