Skip to content

Commit

Permalink
change ordering of plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dungscout96 committed Jul 25, 2024
1 parent b55f163 commit e6ee5e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/plugins/update_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def update_repo(repo, order, plugin_type='readme'):
os.makedirs('github')
wiki_plugins = ['SIFT', 'get_chanlocs', 'NFT', 'PACT', 'nsgportal', 'clean_rawdata']
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']
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']

if len(sys.argv) == 1:
order = 1
for plugin in wiki_plugins:
Expand All @@ -53,7 +55,7 @@ def update_repo(repo, order, plugin_type='readme'):
sys.exit(1)

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

update_repo(plugin_name, plugin_order, plugin_type)
else:
Expand Down

0 comments on commit e6ee5e7

Please sign in to comment.