This file contains 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
""" | |
Script to test retrieval of timestamps in Gavin Yang Neuralynx .ncs and .nev files. | |
""" | |
from neo.rawio.neuralynxrawio.neuralynxrawio import NeuralynxRawIO | |
# nev file | |
nevRawIO = NeuralynxRawIO(dirname='.', include_filenames=['Events_0012.nev'], keep_original_times=True) | |
nevRawIO.parse_header() | |
assert(nevRawIO.global_t_start==0) |
This file contains 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 scipy.signal as signal | |
from NoiseSim.StdNoiseFilter import StdNoiseFilter | |
class StdNoiseGen: | |
""" | |
Standard noise generator. | |
Encapsulates filter length and leading zeros. |
This file contains 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
from math import pi as PI | |
import warnings | |
import numpy as np | |
import pandas as pd | |
from scipy import signal | |
class StdNoiseFilter: | |
""" | |
IIR filter to provide standard noise implementation given sampling rate in Hz. |