Skip to content

Commit

Permalink
update amica
Browse files Browse the repository at this point in the history
  • Loading branch information
dungscout96 committed Jul 25, 2024
1 parent 1a42c54 commit cc38a8f
Show file tree
Hide file tree
Showing 49 changed files with 1,825 additions and 101 deletions.
8 changes: 8 additions & 0 deletions code/plugins/reformat_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def reformat_plugin_dir(plugin_input_dir, plugin_name, order, plugin_type='wiki'
for file in files:
if file.endswith('.jpg') or file.endswith('.png'):
shutil.copyfile(os.path.join(root, file), os.path.join(plugin_output_dir, file))

# if plugin is 'imat', copy the Docs directory recursively to the output directory
if plugin_name == 'imat':
shutil.copytree(os.path.join(plugin_input_dir, 'Docs'), os.path.join(plugin_output_dir, 'Docs'), dirs_exist_ok=True)
Expand All @@ -57,6 +58,13 @@ def reformat_plugin_dir(plugin_input_dir, plugin_name, order, plugin_type='wiki'

if plugin_type == 'wiki':
wiki_plugin_input_dir = plugin_input_dir + '.wiki'

# copy all .jpg and .png files from wiki input to output dir
for root, dirs, files in os.walk(wiki_plugin_input_dir):
for file in files:
if file.endswith('.jpg') or file.endswith('.png'):
shutil.copyfile(os.path.join(root, file), os.path.join(plugin_output_dir, file))

for root, dirs, files in os.walk(wiki_plugin_input_dir):
for file in files:
if file.endswith('.md') and not file.startswith('index') and not file.startswith('Home'):
Expand Down
4 changes: 2 additions & 2 deletions code/plugins/update_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def update_repo(repo, order, plugin_type='readme'):
# if 'github' not in current directory, create it
if not os.path.exists('github'):
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']
wiki_plugins = ['SIFT', 'get_chanlocs', 'NFT', 'PACT', 'nsgportal', 'clean_rawdata', 'amica']
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']
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:
Expand Down
Loading

0 comments on commit cc38a8f

Please sign in to comment.