Connecting Python to Zapit
Installation and basic use of the Zapit Python bridge
Zapit's Python Bridge uses the MATLAB Engine to call Zapit from Python. The MATLAB GUI is used for calibrating the scanners and the sample. After this point all subsequent operations for which you might have used the MATLAB API can be done in Python. Zapit must remain running in MATLAB throughout.
Setting up
Close Zapit if open.
Edit your
zapitSystemSettings.yml
file, settinggeneral.openPythonBridgeOnStart
to1
.Restart Zapit. You should see the message "Opened Python Bridge" at the command line.
Now install the Python Bridge:
Test the bridge
Open a stim config file in Zapit and open an ipython session. Test the connection by querying the number of stimulus conditions in the loaded stimulus config file.
Last updated