NTX-McGill / NeuroTechX-McGill-2021

Other
16 stars 5 forks source link

Software (Backend): Build an interface to call matlab functions #110

Open mlej8 opened 2 years ago

mlej8 commented 2 years ago

Build an interface (python module) to interact with matlab functions implemented by the siggy team to predict a character given EEG data. The goal of this interface is to allow us to call matlab functions from python. Given EEG data from the shared queue q, call the matlab functions using the matlab library for python, then return the prediction the matlab function returns.

@Pingsheng-Kevin please update this issue with your example script that calls the matlab functions for @ablost33 and he will productionize it.

Pingsheng-Kevin commented 2 years ago

https://github.com/NTX-McGill/NeuroTechX-McGill-2021/blob/main/signal_new/CCA_analysis_matlab/demo.py

ablost33 commented 2 years ago
mlej8 commented 2 years ago

Clarifications for Alex:

Create a function that takes as input the shared queue that contains EEG data:

The function must communicate/interface with the matlab functions from the signal team

  1. Extract EEG data from the shared queue.
  2. Do any preprocessing that is needed (e.g. put them into a numpy array if that is required by the Matlab engine, to investigate by running PingSheng's demo.py in debug mode).
  3. Call the matlab functions by giving as input the EEG data
  4. return the prediction from the matlab functions

Please let me know if you need any clarifications.