File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -205,15 +205,15 @@ class LFP(dj.Imported):
205
205
---
206
206
lfp_sampling_rate: float # (Hz)
207
207
lfp_time_stamps: longblob # (s) timestamps with respect to the start of the recording (recording_timestamp)
208
- lfp_mean: longblob # (mV ) mean of LFP across electrodes - shape (time,)
208
+ lfp_mean: longblob # (uV ) mean of LFP across electrodes - shape (time,)
209
209
"""
210
210
211
211
class Electrode (dj .Part ):
212
212
definition = """
213
213
-> master
214
214
-> probe.ElectrodeConfig.Electrode
215
215
---
216
- lfp: longblob # (mV ) recorded lfp at this electrode
216
+ lfp: longblob # (uV ) recorded lfp at this electrode
217
217
"""
218
218
219
219
# Only store LFP for every 9th channel, due to high channel density, close-by channels exhibit highly similar LFP
@@ -431,8 +431,8 @@ class Electrode(dj.Part):
431
431
-> master
432
432
-> probe.ElectrodeConfig.Electrode
433
433
---
434
- waveform_mean: longblob # mean over all spikes
435
- waveforms=null: longblob # (spike x sample) waveform of each spike at each electrode
434
+ waveform_mean: longblob # (uV) mean over all spikes
435
+ waveforms=null: longblob # (uV) ( spike x sample) waveform of each spike at each electrode
436
436
"""
437
437
438
438
@property
Original file line number Diff line number Diff line change @@ -114,11 +114,11 @@ def __init__(self, processor):
114
114
@property
115
115
def ap_data (self ):
116
116
"""
117
- AP data concatenated across recordings. Shape: (channel x sample )
117
+ AP data concatenated across recordings. Shape: (sample x channel )
118
118
Channels' gains (bit_volts) applied - unit: uV
119
119
"""
120
120
if self ._ap_data is None :
121
- self ._ap_data = np .hstack ([s .signal for s in self .ap_analog_signals ])
121
+ self ._ap_data = np .hstack ([s .signal for s in self .ap_analog_signals ]). T
122
122
self ._ap_data = self ._ap_data * self .ap_meta ['channels_gains' ]
123
123
return self ._ap_data
124
124
@@ -131,11 +131,11 @@ def ap_timestamps(self):
131
131
@property
132
132
def lfp_data (self ):
133
133
"""
134
- LFP data concatenated across recordings. Shape: (channel x sample )
134
+ LFP data concatenated across recordings. Shape: (sample x channel )
135
135
Channels' gains (bit_volts) applied - unit: uV
136
136
"""
137
137
if self ._lfp_data is None :
138
- self ._lfp_data = np .hstack ([s .signal for s in self .lfp_analog_signals ])
138
+ self ._lfp_data = np .hstack ([s .signal for s in self .lfp_analog_signals ]). T
139
139
self ._lfp_data = self ._lfp_data * self .lfp_meta ['channels_gains' ]
140
140
return self ._lfp_data
141
141
Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ def apmeta(self):
39
39
40
40
@property
41
41
def apdata (self ):
42
+ """
43
+ AP data: (sample x channel)
44
+ Channels' gains (bit_volts) applied - unit: uV
45
+ """
42
46
if self ._apdata is None :
43
47
self ._apdata = self ._read_bin (self .root_dir / (self .root_name + '.ap.bin' ))
44
48
self ._apdata = self ._apdata * self .get_channel_bit_volts ('ap' )
@@ -52,6 +56,10 @@ def lfmeta(self):
52
56
53
57
@property
54
58
def lfdata (self ):
59
+ """
60
+ LFP data: (sample x channel)
61
+ Channels' gains (bit_volts) applied - unit: uV
62
+ """
55
63
if self ._lfdata is None :
56
64
self ._lfdata = self ._read_bin (self .root_dir / (self .root_name + '.lf.bin' ))
57
65
self ._lfdata = self ._lfdata * self .get_channel_bit_volts ('lf' )
You can’t perform that action at this time.
0 commit comments