Skip to content

Commit 98e691d

Browse files
committed
Rename eeg2bids -> set2bids
1 parent 7b64ae7 commit 98e691d

27 files changed

+85
-89
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
![EEG2BIDS Wizard](wiki/images/logo/EEG2bIDS_Wizard_(converter_tool).jpg)
1+
![SET2BIDS Wizard](wiki/images/logo/EEG2bIDS_Wizard_(converter_tool).jpg)
22

3-
EEG2BIDS Wizard is a GUI interface for iEEG to BIDS format and used with LORIS (Longitudinal Online Research and Imaging System). Users can use their LORIS credentials with a LORIS URL and automatically retrieve LORIS data for the EEG to BIDS format. Becareful to remove your login credentials after using EEG2BIDS on a shared computer!
3+
SET2BIDS Wizard is a GUI interface for iEEG to BIDS format and used with LORIS (Longitudinal Online Research and Imaging System). Users can use their LORIS credentials with a LORIS URL and automatically retrieve LORIS data for the EEG to BIDS format. Becareful to remove your login credentials after using SET2BIDS on a shared computer!
44

55
## Installation
66

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\Scripts\activate
2-
pyinstaller --paths=python python/eeg2bids.py -D `
3-
--name eeg2bids-service-windows `
2+
pyinstaller --paths=python python/set2bids.py -D `
3+
--name set2bids-service-windows `
44
--add-data 'python/libs/bids_validator/rules/top_level_rules.json;./bids_validator/rules' `
55
--add-data 'python/libs/bids_validator/rules/associated_data_rules.json;./bids_validator/rules' `
66
--add-data 'python/libs/bids_validator/rules/file_level_rules.json;./bids_validator/rules' `

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source bin/activate
2-
pyi-makespec --paths=python python/eeg2bids.py -w -D \
3-
--name eeg2bids-service \
2+
pyi-makespec --paths=python python/set2bids.py -w -D \
3+
--name set2bids-service \
44
--add-data 'python/libs/bids_validator/rules/top_level_rules.json:bids_validator/rules' \
55
--add-data 'python/libs/bids_validator/rules/associated_data_rules.json:bids_validator/rules' \
66
--add-data 'python/libs/bids_validator/rules/file_level_rules.json:bids_validator/rules' \

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "eeg2bids",
2+
"name": "set2bids",
33
"description": "EEG/iEEG to BIDS format Wizard",
4-
"version": "1.0.17",
4+
"version": "1.0.0",
55
"dependencies": {
66
"@electron/remote": "^1.1.0",
77
"@fortawesome/fontawesome-free": "^5.15.4",
@@ -90,7 +90,7 @@
9090
},
9191
"build": {
9292
"appId": "mni.aces.eeg2bids",
93-
"productName": "eeg2bids",
93+
"productName": "set2bids",
9494
"copyright": "Open Source",
9595
"asar": false,
9696
"linux": {
@@ -143,11 +143,11 @@
143143
]
144144
}
145145
],
146-
"NSDesktopFolderUsageDescription": "EEG2BIDS Wizard wants to access the Desktop folder.",
147-
"NSDocumentsFolderUsageDescription": "EEG2BIDS Wizard wants to access the Documents folder.",
148-
"NSDownloadsFolderUsageDescription": "EEG2BIDS Wizard wants to access the Downloads folder.",
149-
"NSFileProviderDomainUsageDescription": "EEG2BIDS Wizard wants to access files managed by a file provider.",
150-
"NSSystemAdministrationUsageDescription": "The operation being performed by EEG2BIDS Wizard requires elevated permission."
146+
"NSDesktopFolderUsageDescription": "SET2BIDS Wizard wants to access the Desktop folder.",
147+
"NSDocumentsFolderUsageDescription": "SET2BIDS Wizard wants to access the Documents folder.",
148+
"NSDownloadsFolderUsageDescription": "SET2BIDS Wizard wants to access the Downloads folder.",
149+
"NSFileProviderDomainUsageDescription": "SET2BIDS Wizard wants to access files managed by a file provider.",
150+
"NSSystemAdministrationUsageDescription": "The operation being performed by SET2BIDS Wizard requires elevated permission."
151151
}
152152
},
153153
"nsis": {
@@ -164,7 +164,7 @@
164164
"python/**/*",
165165
"python/tools/mff_to_set.exe",
166166
"dist",
167-
"dist/eeg2bids-service.app",
167+
"dist/set2bids-service.app",
168168
"public/*",
169169
"package.json"
170170
],

public/electron.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ const {app} = electron;
2626
const {BrowserWindow} = electron;
2727
const nativeImage = electron.nativeImage;
2828

29-
const EEG2BIDSService = process.env.DEV ?
30-
require('./eeg2bidsService') :
31-
require(path.join(__dirname, '../build/eeg2bidsService'));
29+
const SET2BIDSService = process.env.DEV ?
30+
require('./set2bidsService') :
31+
require(path.join(__dirname, '../build/set2bidsService'));
3232

3333
// Launch python service.
34-
const eeg2bidsService = new EEG2BIDSService();
35-
eeg2bidsService.startup().then((error) => {
34+
const set2bidsService = new SET2BIDSService();
35+
set2bidsService.startup().then((error) => {
3636
if (error) {
37-
console.info('[SERVICE] eeg2bids-service failed');
37+
console.info('[SERVICE] set2bids-service failed');
3838
} else {
39-
console.info('[SERVICE] eeg2bids-service success');
39+
console.info('[SERVICE] set2bids-service success');
4040
}
4141
});
4242

@@ -123,7 +123,7 @@ app.on('window-all-closed', () => {
123123
// Wait for shutdown to stop
124124
// the service and quit the app
125125
if (process.platform !== 'darwin') {
126-
eeg2bidsService.shutdown(() => app.quit());
126+
set2bidsService.shutdown(() => app.quit());
127127
}
128128
});
129129

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
work correctly both with client-side routing and a non-root public URL.
2525
Learn how to configure a non-root public URL by running `npm run build`.
2626
-->
27-
<title>EEG2BIDS Wizard</title>
27+
<title>SET2BIDS Wizard</title>
2828
</head>
2929
<body>
3030
<noscript>You need to enable JavaScript to run this app.</noscript>

public/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"short_name": "eeg2bids",
3-
"name": "eeg2bids",
2+
"short_name": "set2bids",
3+
"name": "set2bids",
44
"icons": [
55
{
66
"src": "favicon.ico",

public/mffToSetService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const fs = require('fs');
44
const os = require('os');
55

66
/**
7-
* EEG2BIDS Wizard Service
7+
* SET2BIDS Wizard Service
88
*/
99
module.exports = class MFFToSETService {
1010
/**

public/preload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ contextBridge.exposeInMainWorld('myAPI', {
3232
shell.openExternal('https://mcin.ca');
3333
},
3434
visitTemplates: () => {
35-
shell.openExternal('https://github.com/aces/EEG2BIDS/tree/main/templates');
35+
shell.openExternal('https://github.com/aces/eeg2bids/tree/main/templates');
3636
},
3737
getLorisAuthenticationCredentials: async () => {
3838
const credentials = await ipcRenderer.invoke(

public/eeg2bidsService.js renamed to public/set2bidsService.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ pythonLog.transports.file.fileName = 'python.log';
88
pythonLog.transports.file.archiveLog = archiveLog;
99

1010
/**
11-
* EEG2BIDS Wizard Service
11+
* SET2BIDS Wizard Service
1212
*/
13-
module.exports = class EEG2BIDSService {
13+
module.exports = class SET2BIDSService {
1414
/**
1515
* constructor
1616
*/
@@ -47,8 +47,8 @@ module.exports = class EEG2BIDSService {
4747
__dirname,
4848
'..',
4949
this.platform === 'win32' ?
50-
'dist/eeg2bids-service-windows/eeg2bids-service-windows.exe' :
51-
'dist/eeg2bids-service.app/Contents/MacOS/eeg2bids-service',
50+
'dist/set2bids-service-windows/set2bids-service-windows.exe' :
51+
'dist/set2bids-service.app/Contents/MacOS/set2bids-service',
5252
);
5353
this.process = spawn(pathToService, []);
5454
}
@@ -71,7 +71,7 @@ module.exports = class EEG2BIDSService {
7171
*/
7272
shutdown(callback) {
7373
if (this.process) {
74-
pythonLog.info('[SHUTDOWN of eeg2bidsService]');
74+
pythonLog.info('[SHUTDOWN of set2bidsService]');
7575

7676
if(os.platform() === 'win32'){
7777
exec('taskkill /pid ' + this.process.pid + ' /T /F', (error, stdout, stderr) => {

0 commit comments

Comments
 (0)