UCL / NeonatalSleepWake

MIT License
0 stars 0 forks source link

Call Python code from MATLAB #7

Open ageorgou opened 5 years ago

tamuri commented 5 years ago

Kim is running Matlab 2015b

tamuri commented 5 years ago

Adding notes from jonc:

jonc  33 minutes ago
Is the sleep/wake stuff needing to run on Windows @ageorgou? (edited) 

jonc  33 minutes ago
I did some install scripts for Silver Lab that might help

jonc  32 minutes ago
e.g.
call activate %conda_env_name%
echo "Setting up Matlab..."
FOR /F "delims=" %%i IN ('python -c "import sys; print(sys.executable)"') DO SET python=%%i
SET cmds=pyversion '%python%';
matlab -nosplash -nodesktop -r "%cmds% quit"

ageorgou  24 minutes ago
It does. Thanks!

jonc  22 minutes ago
There's more detail in https://github.com/SilverLabUCL/AnalysisPipeline