Skip to content

Commit ba3793b

Browse files
committed
remove temporary debugging tools
1 parent 15848f3 commit ba3793b

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

src/virtualship/instruments/base.py

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)