Skip to content

Commit 6fccce5

Browse files
committed
add getDependency function and requirements
1 parent 0a86b29 commit 6fccce5

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

getDependencies.m

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
function getDependencies(action)
2+
3+
if nargin<1
4+
action = '';
5+
end
6+
7+
switch action
8+
case 'update'
9+
% install dependencies
10+
mpm install -i mpm-requirements.txt -f -c audio_motion_localizer
11+
end
12+
13+
% adds them to the path
14+
mpm_folder = fileparts(which('mpm'));
15+
addpath(genpath(fullfile(mpm_folder, 'mpm-packages', 'mpm-collections', 'audio_motion_localizer')));
16+
17+
end

mpm-requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CPP_BIDS -u https://github.com/cpp-lln-lab/CPP_BIDS.git
2+
CPP_PTB -u https://github.com/cpp-lln-lab/CPP_PTB.git

0 commit comments

Comments
 (0)