Skip to content

Commit 704eea5

Browse files
committed
latest plugin updates
1 parent 11c59e4 commit 704eea5

File tree

395 files changed

+523
-415
lines changed

Some content is hidden

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

395 files changed

+523
-415
lines changed

code/plugins/reformat_plugin.py

+10-8
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ def reformat_plugin_dir(plugin_input_dir, plugin_name, order, plugin_type='wiki'
2828
if os.path.exists(os.path.join(plugin_input_dir, 'images')):
2929
shutil.copytree(os.path.join(plugin_input_dir, 'images'), os.path.join(plugin_output_dir, 'images'), dirs_exist_ok=True)
3030
# copy all .jpg and .png files from input to output dir
31-
for root, dirs, files in os.walk(plugin_input_dir):
32-
for file in files:
33-
if file.endswith('.jpg') or file.endswith('.png'):
34-
shutil.copyfile(os.path.join(root, file), os.path.join(plugin_output_dir, file))
31+
for file in os.listdir(plugin_input_dir):
32+
if file.endswith('.jpg') or file.endswith('.png'):
33+
shutil.copyfile(os.path.join(plugin_input_dir, file), os.path.join(plugin_output_dir, file))
3534

3635
# if plugin is 'imat', copy the Docs directory recursively to the output directory
3736
if plugin_name == 'imat':
@@ -59,11 +58,14 @@ def reformat_plugin_dir(plugin_input_dir, plugin_name, order, plugin_type='wiki'
5958
if plugin_type == 'wiki':
6059
wiki_plugin_input_dir = plugin_input_dir + '.wiki'
6160

61+
# copy image directory from input to output dir
62+
if os.path.exists(os.path.join(wiki_plugin_input_dir, 'images')):
63+
shutil.copytree(os.path.join(wiki_plugin_input_dir, 'images'), os.path.join(plugin_output_dir, 'images'), dirs_exist_ok=True)
6264
# 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))
65+
for file in os.listdir(wiki_plugin_input_dir):
66+
if file.endswith('.jpg') or file.endswith('.png'):
67+
shutil.copyfile(os.path.join(wiki_plugin_input_dir, file), os.path.join(plugin_output_dir, file))
68+
6769

6870
for root, dirs, files in os.walk(wiki_plugin_input_dir):
6971
for file in files:

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', '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']
39+
wiki_plugins = ['SIFT', 'get_chanlocs', 'NFT', 'EEG-BIDS', 'nsgportal', 'clean_rawdata', 'amica']
40+
readme_plugins = ['ARfitStudio', 'roiconnect', 'trimOutlier', 'PACT', '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:

plugins/ARfitStudio/Onchannels.png

-107 KB
Binary file not shown.

plugins/ARfitStudio/Onics.png

-111 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

plugins/ARfitStudio/index.md

+4-4

plugins/EEG-BIDS/BIDS_doc1.png

1.45 MB

plugins/EEG-BIDS/EEG‐BIDS-docs.md

+63

plugins/EEG-BIDS/bids_task.png

772 KB

plugins/EEG-BIDS/eeglab_menu_bids.png

376 KB

plugins/EEG-BIDS/import_column.png

110 KB

plugins/EEG-BIDS/index.md

+5-1

plugins/EEG-BIDS/participant.png

437 KB

plugins/EEG-BIDS/pop_eventinfo.png

140 KB

plugins/EEG-BIDS/pop_importbids.png

75.4 KB

plugins/ICLabel/index.md

+22-23
63.6 KB
10.8 KB
10.3 KB

plugins/NFT/NFT_WMpointselection.png

179 KB
150 KB

plugins/NFT/NFT_coregistration.png

8.6 KB

plugins/NFT/NFT_eyelobes.png

14.5 KB

plugins/NFT/NFT_eyeselection.png

159 KB

plugins/NFT/NFT_forward_ui.png

123 KB

plugins/NFT/NFT_meshgeneration_ui.png

93.3 KB

plugins/NFT/NFT_segmentation.png

341 KB

plugins/NFT/NFT_sourcespacegen.png

6.2 KB

plugins/NFT/NFT_ui.png

179 KB

plugins/NFT/NFT_warping_ui.png

141 KB

plugins/NFT/NFTsmall.jpg

33.3 KB

plugins/NFT/Wiki_figure.png

580 KB

plugins/NIMA/Alphacomparison.png

-775 KB
Binary file not shown.

plugins/NIMA/Blob_from2to7mm.png

-648 KB
Binary file not shown.

plugins/NIMA/Dipfitcomparison.png

-924 KB
Binary file not shown.

plugins/NIMA/Nimafigure01.png

-475 KB
Binary file not shown.

plugins/NIMA/P159_separatealpha.png

-646 KB
Binary file not shown.

plugins/NIMA/Voxels_from2to7mm.png

-515 KB
Binary file not shown.

plugins/NIMA/Voxels_fwhm8to28mm.png

-600 KB
Binary file not shown.

plugins/PACT/1310421662_filesave.png

-1.23 KB
Binary file not shown.
-1.8 KB
Binary file not shown.
-1.13 KB
Binary file not shown.
-1004 Bytes
Binary file not shown.
-1.37 KB
Binary file not shown.
-1.08 KB
Binary file not shown.
-1.05 KB
Binary file not shown.
-5.26 KB
Binary file not shown.
-2.93 KB
Binary file not shown.
-1.33 KB
Binary file not shown.
-1.33 KB
Binary file not shown.
Binary file not shown.
-1.37 KB
Binary file not shown.
-1.03 KB
Binary file not shown.
-1.82 KB
Binary file not shown.
-1.54 KB
Binary file not shown.
-1.4 KB
Binary file not shown.
-1.01 KB
Binary file not shown.
-1.11 KB
Binary file not shown.
-1.23 KB
Binary file not shown.
-829 Bytes
Binary file not shown.
-972 Bytes
Binary file not shown.
-1.17 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-2.13 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

plugins/PACT/add.png

-639 Bytes
Binary file not shown.

plugins/PACT/atlasOff.png

-1.35 KB
Binary file not shown.

plugins/PACT/atlasOn.png

-1.46 KB
Binary file not shown.

plugins/PACT/connectLine.png

-506 Bytes
Binary file not shown.

plugins/PACT/cortexOff.png

-1.37 KB
Binary file not shown.

plugins/PACT/cortexOn.png

-1.25 KB
Binary file not shown.

plugins/PACT/createEvent.png

-432 Bytes
Binary file not shown.

plugins/PACT/deleteLine.png

-462 Bytes
Binary file not shown.

plugins/PACT/erpImage.png

-3.27 KB
Binary file not shown.

plugins/PACT/eventEditor.png

-263 Bytes
Binary file not shown.

plugins/PACT/images/Demo01.jpg

80.2 KB

plugins/PACT/images/Demo02.jpg

45.8 KB

plugins/PACT/images/Demo03.jpg

31.2 KB

plugins/PACT/images/Demo04.jpg

568 KB

plugins/PACT/images/Demo05.jpg

39.1 KB

plugins/PACT/images/Demo06.jpg

137 KB

plugins/PACT/images/PACT05Hz.jpg

319 KB

plugins/PACT/images/PACT05Hz.png

53.6 KB

plugins/PACT/images/PACT15Hz.jpg

319 KB

plugins/PACT/images/PACT15Hz.png

55.3 KB
157 KB
57.6 KB

plugins/PACT/images/PactUpdate2.jpg

322 KB

plugins/PACT/images/PactUpdate2.png

78.9 KB

plugins/PACT/images/PactUpdate3.jpg

104 KB

plugins/PACT/images/PactUpdate3.png

20 KB

0 commit comments

Comments
 (0)