Skip to content

Commit

Permalink
Reformat files
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 14, 2025
1 parent fe47755 commit 49ba7f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/hal/helpers/jaeger.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def check_db(self):

if not targetdb.database.connect():
self.warn(
"Cannot connect to database. "
"Field information may be incomplete.",
"Cannot connect to database. Field information may be incomplete.",
)
return False

Expand Down
2 changes: 1 addition & 1 deletion src/hal/helpers/lamps.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async def turn_lamp(
elif (n_iter % 5) == 0:
remaining = int(self.WARMUP[lamp] - elapsed)
command.debug(
f"Warming up lamp {lamp}: " f"{remaining} s remaining."
f"Warming up lamp {lamp}: {remaining} s remaining."
)

await asyncio.sleep(1)
Expand Down
2 changes: 1 addition & 1 deletion src/hal/helpers/tcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ async def do_slew(
slew_cmd = self._send_command(
command,
"tcc",
f"offset guide {az/3600.:g},{alt/3600.:g},{rot/3600.:g} /computed",
f"offset guide {az / 3600.0:g},{alt / 3600.0:g},{rot / 3600.0:g} /computed",
time_limit=config["timeouts"]["slew"],
raise_on_fail=False,
)
Expand Down
3 changes: 1 addition & 2 deletions src/hal/macros/goto_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,7 @@ async def acquire(self):
# but continue.
if self.helpers.cherno.guiding_at_rms(min_rms, allow_not_guiding=True):
self.command.warning(
f"Target RMS not reached but RMS < {min_rms} arcsec. "
"Will continue."
f"Target RMS not reached but RMS < {min_rms} arcsec. Will continue."
)
else:
raise
Expand Down

0 comments on commit 49ba7f4

Please sign in to comment.