Пример #1
0
 def filterord(self, chanis=-1, f0=300, f1=None, order=4, btype='highpass', ftype='butter',
            plot=False):
     b, a = LFP.filterord(self, chanis, f0, f1, order, btype, ftype)
     if plot:
         self.plot(0.31, 0.325, chanis=chanis)
         self.specgram(0, 500, f1=2000, p0=None, p1=None)
     return b, a
Пример #2
0
 def filter(self, chanis=-1, f0=500, f1=0, fr=100, gpass=0.01, gstop=50, ftype='ellip',
            plot=False):
     b, a = LFP.filter(self, chanis, f0, f1, fr, gpass, gstop, ftype)
     if plot:
         self.plot(0.31, 0.325, chanis=chanis)
         self.specgram(0, 500, f1=2000, p0=None, p1=None)
     return b, a
Пример #3
0
 def filterwavelet(self, chanis=-1, wname="db4", maxlevel=6, plot=False):
     LFP.filterwavelet(self, chanis, wname, maxlevel)
     if plot:
         self.plot(0.31, 0.325, chanis=chanis)
         self.specgram(0, 500, f1=2000, p0=None, p1=None)
Пример #4
0
 def specgram(self, t0=None, t1=None, f0=None, f1=2000, p0=None, p1=None, chanis=-1,
              width=2**16, tres=2**16-2**15, cm=None, colorbar=False, figsize=(20, 6.5)):
     LFP.specgram(self, t0, t1, f0, f1, p0, p1, chanis, width, tres, cm, colorbar,
                  figsize)
Пример #5
0
 def __init__(self, fname='/home/mspacek/work/Buzsaki_raw_data/trace_8Chan_High-Sleep.dat'):
     LFP.__init__(self, Recording(''), fname) # give it a fake recording