From fdead21abc22f25462e2625f18af6ba17998b528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Mon, 29 Jul 2024 22:37:55 +0000 Subject: [PATCH] Typo: cleanup_on_interrrupt -> cleanup_on_interrupt --- src/gort/gort.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gort/gort.py b/src/gort/gort.py index 1d517a5..226e6bc 100644 --- a/src/gort/gort.py +++ b/src/gort/gort.py @@ -672,7 +672,7 @@ async def observe( try: result = await self.observe_tile( run_cleanup=False, - cleanup_on_interrrupt=True, + cleanup_on_interrupt=True, adjust_focus=adjust_focus, show_progress=show_progress, ) @@ -741,7 +741,7 @@ async def observe_tile( show_progress: bool | None = None, run_cleanup: bool = True, adjust_focus: bool = True, - cleanup_on_interrrupt: bool = True, + cleanup_on_interrupt: bool = True, ): """Performs all the operations necessary to observe a tile. @@ -789,7 +789,7 @@ async def observe_tile( Adjusts the focuser positions based on temperature drift before starting the observation. This works best if the focus has been initially determined using a focus sweep. - cleanup_on_interrrupt + cleanup_on_interrupt If ``True``, registers a signal handler to catch interrupts and run the cleanup routine. @@ -820,7 +820,7 @@ async def observe_tile( dither_positions = tile.dither_positions tile.set_dither_position(dither_positions[0]) - if cleanup_on_interrrupt: + if cleanup_on_interrupt: interrupt_cb = partial(self.run_script_sync, "cleanup") else: interrupt_cb = None