File tree Expand file tree Collapse file tree 1 file changed +11
-17
lines changed
src/virtualship/instruments Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -113,26 +113,20 @@ def simulate(
113113
114114 def execute (self , measurements : list , out_path : str | Path ) -> None :
115115 """Run instrument simulation."""
116- TMP = True
117-
118- if TMP :
119- if not self .verbose_progress :
120- with yaspin (
121- text = f"Simulating { self .__class__ .__name__ .split ('Instrument' )[0 ]} measurements... " ,
122- side = "right" ,
123- spinner = ship_spinner ,
124- ) as spinner :
125- self .simulate (measurements , out_path )
126- spinner .ok ("✅\n " )
127- else :
128- print (
129- f"Simulating { self .__class__ .__name__ .split ('Instrument' )[0 ]} measurements... "
130- )
116+ if not self .verbose_progress :
117+ with yaspin (
118+ text = f"Simulating { self .__class__ .__name__ .split ('Instrument' )[0 ]} measurements... " ,
119+ side = "right" ,
120+ spinner = ship_spinner ,
121+ ) as spinner :
131122 self .simulate (measurements , out_path )
132- print ("\n " )
133-
123+ spinner .ok ("✅\n " )
134124 else :
125+ print (
126+ f"Simulating { self .__class__ .__name__ .split ('Instrument' )[0 ]} measurements... "
127+ )
135128 self .simulate (measurements , out_path )
129+ print ("\n " )
136130
137131 def _get_copernicus_ds (
138132 self ,
You can’t perform that action at this time.
0 commit comments