@@ -264,8 +264,8 @@ def plot_all_currents(ax, xmin, xmax, ymin, ymax, all_x, all_y, all_z, all_val,
264264def plot_csd_slice (ax , xmin , xmax , ymin , ymax , all_x , all_y , all_z , all_val ,
265265 letter = '' , title = '' ):
266266 nx , ny = int (800 / 50 ), int (2500 / 50 )
267- vx , vy = np .mgrid [- 400 :400 :np . complex (0 , nx + 1 ),
268- - 2000 :500 :np . complex (0 , ny + 1 )]
267+ vx , vy = np .mgrid [- 400 :400 :complex (0 , nx + 1 ),
268+ - 2000 :500 :complex (0 , ny + 1 )]
269269 voxels_csd = np .zeros ((nx , ny ))
270270
271271 counter = 0
@@ -308,7 +308,7 @@ def plot_dense_potentials(ax, h, pop_names, time_pts, time_pt_interest,
308308 z = 0
309309 tot_ele = nx * ny
310310 zz = np .ones ((tot_ele , 1 )) * z
311- xx , yy = np .mgrid [- 450 :450 :np . complex (0 , nx ), - 2000 :500 :np . complex (0 , ny )]
311+ xx , yy = np .mgrid [- 450 :450 :complex (0 , nx ), - 2000 :500 :complex (0 , ny )]
312312 xx = xx .reshape (tot_ele , 1 )
313313 yy = yy .reshape (tot_ele , 1 )
314314 elec_pos = np .hstack ((xx , yy , zz ))
@@ -352,7 +352,7 @@ def prepare_electrodes():
352352 dist_from_center_axis = 1.5 * 22.5 + 20
353353 od , do = 0 , - (10 + 22.5 )* ny
354354 xx , yy = np .mgrid [- dist_from_center_axis :dist_from_center_axis :
355- np . complex (0 , nx ), od :do :np . complex (0 , ny )]
355+ complex (0 , nx ), od :do :complex (0 , ny )]
356356 xx = xx .reshape (tot_ele , 1 )
357357 yy = yy .reshape (tot_ele , 1 )
358358 elec4 = np .hstack ((xx , yy , zz ))
@@ -372,14 +372,14 @@ def prepare_electrodes():
372372 left_border = - 30
373373
374374 od , do = 500 , - (40 * ny / 2 - 500 )
375- x1 , y1 = np .mgrid [left_border :left_border + 2 * dist_h :np . complex (0 , nx / 2 ),
376- od :do :np . complex (0 , ny / 2 )]
375+ x1 , y1 = np .mgrid [left_border :left_border + 2 * dist_h :complex (0 , nx / 2 ),
376+ od :do :complex (0 , ny / 2 )]
377377 x1 = x1 .reshape (int (tot_ele / 2 ), 1 )
378378 y1 = y1 .reshape (int (tot_ele / 2 ), 1 )
379379
380380 x2 , y2 = np .mgrid [left_border + dist_h :left_border +
381- 3 * dist_h :np . complex (0 , nx / 2 ),
382- od - dist_v :do - dist_v :np . complex (0 , ny / 2 )]
381+ 3 * dist_h :complex (0 , nx / 2 ),
382+ od - dist_v :do - dist_v :complex (0 , ny / 2 )]
383383 x2 = x2 .reshape (int (tot_ele / 2 ), 1 )
384384 y2 = y2 .reshape (int (tot_ele / 2 ), 1 )
385385
@@ -434,8 +434,8 @@ def make_column_plot(h, pop_names, time_pts, time_pt_interest, elec_pos_list, na
434434 letter = 'C' , filt = False )
435435
436436 ax4 = plt .subplot (244 , aspect = 'equal' )
437- xx , yy = np .mgrid [xmin :xmax :np . complex (0 , true_csd .shape [0 ]),
438- ymin :ymax :np . complex (0 , true_csd .shape [1 ])]
437+ xx , yy = np .mgrid [xmin :xmax :complex (0 , true_csd .shape [0 ]),
438+ ymin :ymax :complex (0 , true_csd .shape [1 ])]
439439 plot_csd_smooth (ax4 , xmin , xmax , ymin , ymax , true_csd [:, :],
440440 xx , yy , letter = 'D' )
441441
0 commit comments