This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Read the stimulus times from bininfo.mat and write it in the required | |
format for phy plugin EventMarker. | |
""" | |
import h5py | |
from pathlib import Path | |
import numpy as np | |
fp = Path(folder) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
""" | |
import os | |
import numpy as np | |
import pandas as pd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def shufflebyrow(X): | |
""" | |
Shuffle each row of a given array independently. Can be useful for | |
randomizing binned spikes from all cells, for statistical testing. | |
Parameters | |
-------- | |
X: np.array with two dimensions | |
Rows should correspond to cells, columns to time bins. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib as mpl | |
from matplotlib.widgets import Slider | |
import iofuncs as iof | |
import plotfuncs as plf | |