Skip to content

Commit 01e8c29

Browse files
committed
Make scripts run independent of base folder
1 parent 4cdf9fb commit 01e8c29

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed
526 Bytes
Binary file not shown.

examples/tiny_ephys_inference.mlx

3 Bytes
Binary file not shown.

examples/tiny_ephys_training.mlx

2 Bytes
Binary file not shown.

examples/tiny_ophys_inference.mlx

333 KB
Binary file not shown.

setup.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
function setup()
1+
function base_folder = setup()
22
% Add current directory and sample_data, layers and exmamples to path
3-
setup_path = fileparts(mfilename('fullpath'));
4-
addpath(setup_path);
5-
addpath(fullfile(setup_path, "network_layers"))
6-
addpath(fullfile(setup_path, "sample_data"))
7-
addpath(fullfile(setup_path, "examples"))
3+
base_folder = fileparts(mfilename('fullpath'));
4+
addpath(base_folder);
5+
addpath(fullfile(base_folder, "network_layers"))
6+
addpath(fullfile(base_folder, "sample_data"))
7+
addpath(fullfile(base_folder, "examples"))
88
end

0 commit comments

Comments
 (0)