From eb3df503e71f7ecc92cc0641a3e2fd7d863894b7 Mon Sep 17 00:00:00 2001 From: semihgunel Date: Thu, 1 Apr 2021 20:39:47 +0200 Subject: [PATCH] Update README.md colors for the python code on the README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f3fb10..ef6ce81 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ While this is useful for reproducing the paper, it does not easily allow buildin One such function that is easy to use is 'SVCA.m' which computes the cross-validated reliable variance of latent dimensions in the population activity. ### How to load the 2P data into python ### -``` +```python import scipy.io as sio import numpy as np mt = sio.loadmat('spont_M150824_MP019_2016-04-05.mat') @@ -50,7 +50,7 @@ mt[‘stat’][0][‘npix’] # one example field, tells you how pixels ma ``` ### How to load the ephys data into python ### -``` +```python from scipy import io probeLoc = io.loadmat('/home/carsen/dm11/data/Spikes/eightprobes/probeLocations.mat')