function myTopoExecuter(currentData) {
    return new Promise(function (resolve, reject) {
        var options = {
            mode: 'binary',
            args: [] 
        };   
        var topoPlotShell = new PythonShell('/backend/pythonscripts/topoplot/topoFilter.py');
        topoPlotShell.send(JSON.stringify(currentData.channels));
        topoPlotShell.on('message',(message) => {
        });  
        topoPlotShell.end((err,code,signal) => {
            if (err) reject(err);
            console.log(code,signal);
            resolve ({c: code, s: signal});
        }); 
    });
}
/**  
 * topoplot executer, returns a promise
 * @param {Object} currentData - edf object structure 
 * @returns {Promise} PythonShell execution of topoplot filter
 */
topoplot executer, returns a promise
@param {Object} currentData - edf object structure
@returns {Promise} PythonShell execution of topoplot filter
topoplot executer returns a promise @param { Object } currentData - edf object structure @returns { Promise } PythonShell execution of topoplot filter
function myTopoExecuter(currentData) {
    return new Promise(function (resolve, reject) {
        var options = {
            mode: 'binary',
            args: [] 
        };   
        var topoPlotShell = new PythonShell('/backend/pythonscripts/topoplot/topoFilter.py');
        topoPlotShell.send(JSON.stringify(currentData.channels));
        topoPlotShell.on('message',(message) => {
        });  
        topoPlotShell.end((err,code,signal) => {
            if (err) reject(err);
            console.log(code,signal);
            resolve ({c: code, s: signal});
        }); 
    });
}
function myTopoExecuter ( currentData ) { return new Promise ( function ( resolve , reject ) { var options = { mode : 'binary' , args : [ ] } ; var topoPlotShell = new PythonShell ( '/backend/pythonscripts/topoplot/topoFilter.py' ) ; topoPlotShell . send ( JSON . stringify ( currentData . channels ) ) ; topoPlotShell . on ( 'message' , ( message ) => { } ) ; topoPlotShell . end ( ( err , code , signal ) => { if ( err ) reject ( err ) ; console . log ( code , signal ) ; resolve ( { c : code , s : signal } ) ; } ) ; } ) ; }
topoplot executer, returns a promise
 @param {Object} currentData - edf object structure
 @returns {Promise} PythonShell execution of topoplot filter
topoplot executer returns a promise @param { Object } currentData - edf object structure @returns { Promise } PythonShell execution of topoplot filter