From d046764cf64675f9f5d1386ba0a44f2f6ea51b24 Mon Sep 17 00:00:00 2001 From: Carolina Fernandez Date: Mon, 15 Apr 2024 14:12:05 -0400 Subject: [PATCH] fix flake8 --- hnn_core/tests/test_general_optimization.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hnn_core/tests/test_general_optimization.py b/hnn_core/tests/test_general_optimization.py index 2f4aa8692..d6fff5cdc 100644 --- a/hnn_core/tests/test_general_optimization.py +++ b/hnn_core/tests/test_general_optimization.py @@ -240,7 +240,7 @@ def maximize_csd(initial_net, initial_params, set_params, predicted_params, electrode_pos = [(135, 135, dep) for dep in depths] new_net.add_electrode_array('shank1', electrode_pos) - dpl = simulate_dipole(new_net, tstop=tstop, n_trials=1)[0] + simulate_dipole(new_net, tstop=tstop, n_trials=1)[0] potentials = new_net.rec_arrays['shank1'][0] @@ -263,8 +263,8 @@ def maximize_csd(initial_net, initial_params, set_params, predicted_params, depth_max = np.argmax(contact_labels >= obj_fun_kwargs['electrode_depths'][idx][1]) - csd_subsets.append(sum(sum(csd[depth_min:depth_max+1, - t_min:t_max+1]))) + csd_subsets.append(sum(sum(csd[depth_min:depth_max + 1, + t_min:t_max + 1]))) obj = sum(csd_subsets) / sum(sum(csd)) obj_values.append(obj)