Skip to content

Commit 9e1d8ce

Browse files
committed
relative paths
1 parent ff916b4 commit 9e1d8ce

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

code/plugins/reformat_plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# open a text file ending with .md and append a paragraph to it
66
def reformat_plugin(dirpath, plugin_name):
7-
plugins_dir = '/Users/dtyoung/Documents/EEGLAB/sccn.github.io/plugins'
7+
plugins_dir = '../../plugins'
88
index_file = os.path.join(plugins_dir, 'index.md')
99
shutil.copyfile(os.path.join(dirpath, 'README.md'), index_file)
1010
with open(index_file) as f:
@@ -39,7 +39,7 @@ def append_to_file(filepath, filename, parent, output_file):
3939

4040
def reformat_plugin_dir(plugin_input_dir, plugin_name, order, plugin_type='wiki'):
4141
# plugins_output_dir = '/Users/dtyoung/Documents/EEGLAB/sccn.github.io/plugins'
42-
plugin_output_dir = os.path.join('/Users/dtyoung/Documents/EEGLAB/sccn.github.io/plugins', plugin_name)
42+
plugin_output_dir = os.path.join('../../plugins', plugin_name)
4343
if not os.path.exists(plugin_output_dir):
4444
os.makedirs(plugin_output_dir)
4545
# copy image directory from input to output dir
@@ -101,4 +101,4 @@ def main():
101101
reformat_plugin_dir(dirpath, plugin_name, order, plugin_type)
102102

103103
if __name__ == "__main__":
104-
main()
104+
main()

replace_file_links.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ function replace_file_links(fileName)
1111
allStrs = {};
1212
count = 1;
1313
while ~feof(fid)
14-
allStrs{count} = fgetl(fid);
15-
16-
replace_txt(allStrs{count}, pattern1, pattern2);
14+
strTmp = fgetl(fid);
15+
expression1 = '[A-Za-z0-9]+\(\)';
16+
expression2 = '[A-Za-z0-9]\(\)';
17+
18+
1719

1820
if count > 1
1921
[twoLines,content] = replace_txt([ allStrs{count-1} allStrs{count} ], pattern1, pattern2);

tutorials/ConceptsGuide/Data_Structures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ line output:
6767
group: ''
6868
condition: ''
6969
session: []
70-
comments: [9×769 char]
70+
comments: [9x769 charater]
7171
nbchan: 32
7272
trials: 80
7373
pnts: 384
@@ -81,7 +81,7 @@ line output:
8181
icasphere: [32×32 double]
8282
icaweights: [32×32 double]
8383
icachansind: [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32]
84-
chanlocs: [1×32 struct]
84+
chanlocs: [1x32 struct]
8585
urchanlocs: [1×32 struct]
8686
chaninfo: [1×1 struct]
8787
ref: 'common'

0 commit comments

Comments
 (0)