File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
element_array_ephys/plotting Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,12 @@ def plot_depth_waveforms(
90
90
probe .ProbeType .Electrode & f"probe_type='{ probe_type } '"
91
91
).fetch ("electrode" , "y_coord" )
92
92
93
+ peak_electrode_shank = (
94
+ probe .ProbeType .Electrode
95
+ & f"probe_type='{ probe_type } '"
96
+ & f"electrode={ peak_electrode } "
97
+ ).fetch1 ("shank" )
98
+
93
99
peak_coord_y = coord_y [electrodes == peak_electrode ][0 ]
94
100
95
101
coord_ylim_low = (
@@ -107,10 +113,13 @@ def plot_depth_waveforms(
107
113
(probe .ProbeType .Electrode )
108
114
& f"probe_type = '{ probe_type } '"
109
115
& f"y_coord BETWEEN { coord_ylim_low } AND { coord_ylim_high } "
116
+ & f"shank={ peak_electrode_shank } "
117
+ )
118
+ electrodes_to_plot , x_coords , y_coords = tbl .fetch (
119
+ "electrode" , "x_coord" , "y_coord"
110
120
)
111
- electrodes_to_plot = tbl .fetch ("electrode" )
112
121
113
- coords = np .array (tbl . fetch ( "x_coord" , "y_coord" ) ).T # x, y coordinates
122
+ coords = np .array ([ x_coords , y_coords ] ).T # x, y coordinates
114
123
115
124
waveforms = (
116
125
ephys .WaveformSet .Waveform
You can’t perform that action at this time.
0 commit comments