Skip to content

Commit 11c59e4

Browse files
committedJul 25, 2024
update amica
1 parent 1a42c54 commit 11c59e4

Some content is hidden

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

44 files changed

+1794
-101
lines changed
 

‎code/plugins/reformat_plugin.py

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def reformat_plugin_dir(plugin_input_dir, plugin_name, order, plugin_type='wiki'
3232
for file in files:
3333
if file.endswith('.jpg') or file.endswith('.png'):
3434
shutil.copyfile(os.path.join(root, file), os.path.join(plugin_output_dir, file))
35+
3536
# if plugin is 'imat', copy the Docs directory recursively to the output directory
3637
if plugin_name == 'imat':
3738
shutil.copytree(os.path.join(plugin_input_dir, 'Docs'), os.path.join(plugin_output_dir, 'Docs'), dirs_exist_ok=True)
@@ -57,6 +58,13 @@ def reformat_plugin_dir(plugin_input_dir, plugin_name, order, plugin_type='wiki'
5758

5859
if plugin_type == 'wiki':
5960
wiki_plugin_input_dir = plugin_input_dir + '.wiki'
61+
62+
# copy all .jpg and .png files from wiki input to output dir
63+
for root, dirs, files in os.walk(wiki_plugin_input_dir):
64+
for file in files:
65+
if file.endswith('.jpg') or file.endswith('.png'):
66+
shutil.copyfile(os.path.join(root, file), os.path.join(plugin_output_dir, file))
67+
6068
for root, dirs, files in os.walk(wiki_plugin_input_dir):
6169
for file in files:
6270
if file.endswith('.md') and not file.startswith('index') and not file.startswith('Home'):

‎code/plugins/update_plugins.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def update_repo(repo, order, plugin_type='readme'):
3636
# if 'github' not in current directory, create it
3737
if not os.path.exists('github'):
3838
os.makedirs('github')
39-
wiki_plugins = ['SIFT', 'get_chanlocs', 'NFT', 'PACT', 'nsgportal', 'clean_rawdata']
40-
readme_plugins = ['ARfitStudio', 'roiconnect', 'EEG-BIDS', 'trimOutlier', 'groupSIFT', 'nwbio', 'ICLabel', 'dipfit', 'eegstats', 'PowPowCAT', 'PACTools', 'zapline-plus', 'amica', 'fMRIb', 'relica', 'std_dipoleDensity', 'imat', 'viewprops', 'cleanline','NIMA', 'firfilt']
39+
wiki_plugins = ['SIFT', 'get_chanlocs', 'NFT', 'PACT', 'nsgportal', 'clean_rawdata', 'amica']
40+
readme_plugins = ['ARfitStudio', 'roiconnect', 'EEG-BIDS', 'trimOutlier', 'groupSIFT', 'nwbio', 'ICLabel', 'dipfit', 'eegstats', 'PowPowCAT', 'PACTools', 'zapline-plus', 'fMRIb', 'relica', 'std_dipoleDensity', 'imat', 'viewprops', 'cleanline','NIMA', 'firfilt']
4141
ordering = ['ICLabel', 'dipfit', 'EEG-BIDS', 'roiconnect', 'amica', 'cleanline', 'clean_rawdata', 'SIFT', 'zapline-plus', 'eegstats', 'trimOutlier', 'fMRIb', 'imat', 'nwbio', 'NIMA', 'PACT', 'NFT', 'PACTools', 'ARfitStudio', 'PowPowCAT', 'relica', 'std_dipoleDensity', 'viewprops', 'firfilt', 'groupSIFT', 'get_chanlocs', 'nsgportal']
4242

4343
if len(sys.argv) == 1:

0 commit comments

Comments
 (0)