Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinafernandezp committed Apr 15, 2024
1 parent 612f8b1 commit d046764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hnn_core/tests/test_general_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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)
Expand Down

0 comments on commit d046764

Please sign in to comment.