@@ -32,6 +32,10 @@ def do_expedition(expedition_dir: str | Path, input_data: Path | None = None) ->
3232 :param expedition_dir: The base directory for the expedition.
3333 :param input_data: Input data folder (override used for testing).
3434 """
35+ print ("\n ╔═════════════════════════════════════════════════╗" )
36+ print ("║ VIRTUALSHIP EXPEDITION STATUS ║" )
37+ print ("╚═════════════════════════════════════════════════╝" )
38+
3539 if isinstance (expedition_dir , str ):
3640 expedition_dir = Path (expedition_dir )
3741
@@ -57,6 +61,8 @@ def do_expedition(expedition_dir: str | Path, input_data: Path | None = None) ->
5761 input_data = input_data ,
5862 )
5963
64+ print ("\n ---- WAYPOINT VERIFICATION ----" )
65+
6066 # verify schedule is valid
6167 schedule .verify (ship_config .ship_speed_knots , input_data )
6268
@@ -83,6 +89,8 @@ def do_expedition(expedition_dir: str | Path, input_data: Path | None = None) ->
8389 shutil .rmtree (expedition_dir .joinpath ("results" ))
8490 os .makedirs (expedition_dir .joinpath ("results" ))
8591
92+ print ("\n ----- EXPEDITION SUMMARY ------" )
93+
8694 # calculate expedition cost in US$
8795 assert schedule .waypoints [0 ].time is not None , (
8896 "First waypoint has no time. This should not be possible as it should have been verified before."
@@ -91,20 +99,26 @@ def do_expedition(expedition_dir: str | Path, input_data: Path | None = None) ->
9199 cost = expedition_cost (schedule_results , time_past )
92100 with open (expedition_dir .joinpath ("results" , "cost.txt" ), "w" ) as file :
93101 file .writelines (f"cost: { cost } US$" )
94- print (f"This expedition took { time_past } and would have cost { cost :,.0f} US$." )
102+ print (f"\n Expedition duration: { time_past } \n Expedition cost: US$ { cost :,.0f} ." )
103+
104+ print ("\n --- MEASUREMENT SIMULATIONS ---" )
95105
96106 # simulate measurements
97- print ("Simulating measurements. This may take a while.." )
107+ print ("\n Simulating measurements. This may take a while... \n " )
98108 simulate_measurements (
99109 expedition_dir ,
100110 ship_config ,
101111 input_data ,
102112 schedule_results .measurements_to_simulate ,
103113 )
104- print ("Done simulating measurements ." )
114+ print ("\n All measurement simulations are complete ." )
105115
106- print ("Your expedition has concluded successfully!" )
107- print ("Your measurements can be found in the results directory." )
116+ print ("\n ----- EXPEDITION RESULTS ------" )
117+ print ("\n Your expedition has concluded successfully!" )
118+ print (
119+ f"Your measurements can be found in the '{ expedition_dir } /results' directory."
120+ )
121+ print ("\n ------------- END -------------\n " )
108122
109123
110124def _load_input_data (
0 commit comments