Skip to content

Commit e6ee5e7

Browse files
committed
change ordering of plugins
1 parent b55f163 commit e6ee5e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

code/plugins/update_plugins.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def update_repo(repo, order, plugin_type='readme'):
3838
os.makedirs('github')
3939
wiki_plugins = ['SIFT', 'get_chanlocs', 'NFT', 'PACT', 'nsgportal', 'clean_rawdata']
4040
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']
41+
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']
42+
4143
if len(sys.argv) == 1:
4244
order = 1
4345
for plugin in wiki_plugins:
@@ -53,7 +55,7 @@ def update_repo(repo, order, plugin_type='readme'):
5355
sys.exit(1)
5456

5557
plugin_type = 'wiki' if plugin_name in wiki_plugins else 'readme'
56-
plugin_order = wiki_plugins.index(plugin_name) + 1 if plugin_type == 'wiki' else len(wiki_plugins) + readme_plugins.index(plugin_name) + 1
58+
plugin_order = ordering.index(plugin_name) + 1
5759

5860
update_repo(plugin_name, plugin_order, plugin_type)
5961
else:

0 commit comments

Comments
 (0)