From a6ee97f6f838c1b1d814293251c8748eed2f561c Mon Sep 17 00:00:00 2001 From: Rogerio Jorge Date: Fri, 22 Sep 2023 19:19:02 +0200 Subject: [PATCH] Ran autopep --- examples/3_Advanced/single_stage_optimization_finite_beta.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/3_Advanced/single_stage_optimization_finite_beta.py b/examples/3_Advanced/single_stage_optimization_finite_beta.py index b0b467d88..772623d43 100755 --- a/examples/3_Advanced/single_stage_optimization_finite_beta.py +++ b/examples/3_Advanced/single_stage_optimization_finite_beta.py @@ -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)))