Skip to content

Commit

Permalink
Ran autopep
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriojorge committed Sep 22, 2023
1 parent e1e2a20 commit a6ee97f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/3_Advanced/single_stage_optimization_finite_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ def fun_J(prob, coils_prob):

bs.set_points(vc.trgt_surf.gamma().reshape((-1, 3)))
Bvmec = np.transpose(np.array(B_cartesian(vmec, quadpoints_phi=vc.trgt_surf.quadpoints_phi,
quadpoints_theta=vc.trgt_surf.quadpoints_theta)),(1,2,0))
quadpoints_theta=vc.trgt_surf.quadpoints_theta)), (1, 2, 0))
Bvirtualcasing = vc.B_external
Bcoil = bs.B().reshape(Bvirtualcasing.shape)
Bsquared_interface = np.sum((Bcoil - Bvirtualcasing)*(Bcoil - Bvirtualcasing + 2*Bvmec),axis=-1)
Bsquared_interface = np.sum((Bcoil - Bvirtualcasing)*(Bcoil - Bvirtualcasing + 2*Bvmec), axis=-1)
sum_Bsquared_interface = np.sum(Bsquared_interface**2)

bs.set_points(surf.gamma().reshape((-1, 3)))
Expand Down

0 comments on commit a6ee97f

Please sign in to comment.