From 8e5ca47ce17588bd1c9c46653a3f40c2cf023712 Mon Sep 17 00:00:00 2001 From: Connor Johnstone Date: Wed, 22 Sep 2021 16:23:13 +0000 Subject: [PATCH] Update inner_loop.jl test file --- julia/test/inner_loop/inner_loop.jl | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/julia/test/inner_loop/inner_loop.jl b/julia/test/inner_loop/inner_loop.jl index 8cfc023..a7060b0 100644 --- a/julia/test/inner_loop/inner_loop.jl +++ b/julia/test/inner_loop/inner_loop.jl @@ -47,15 +47,14 @@ # The first leg should be valid fresh_sc = copy(sc) - mass, thrusts = inner_loop( launch_date, - sc, - start_mass, - [phase1], - verbose=true, - mbh_specs=(25,50) ) - @test sc.mass > sc.dry_mass - path, final = prop(thrusts[1], earth_state+[zeros(3);v∞s[1]], fresh_sc, μs["Sun"], leg1_tof) - @test final ≈ p1_state + [zeros(3); v∞s[2]] + thrusts = inner_loop( launch_date, + sc, + start_mass, + [phase1], + verbose=true, + mbh_specs=(25,50) ) + path, final = prop(thrusts[1], earth_state+[zeros(3);v∞s[1];0.0], Sc("test"), μs["Sun"], leg1_tof) + @test final[1:6] ≈ p1_state[1:6] + [zeros(3); v∞s[2]] savefig(plot_orbits( [earth, p1_path, path], primary="Sun", labels=["Earth", p1, "Leg 1"],