Skip to content

Commit cb7bcf2

Browse files
committed
Ensure focus sweep even if focus_age is set
1 parent 243efd9 commit cb7bcf2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
* Check AG cameras and power cycle them if necessary in the cleanup recipe.
88
* Allow to disable points upon addition to the pointing model.
99

10+
### 🔧 Fixed
11+
12+
* Perform focus sweep if a periodic focus sweep is required and none has been done yet that night, even if `focus_age` is less than the periodic value.
13+
1014

1115
## 1.11.3 - November 6, 2025
1216

src/gort/overwatcher/observer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ async def should_focus(self, force: bool = False, is_error: bool = False) -> boo
531531
focus_info = await self.gort.guiders.sci.get_focus_info()
532532
focus_age = focus_info["reference_focus"]["age"]
533533

534-
if focus_age is None or focus_age > focus_every:
534+
if self.mjd_focus is False or focus_age is None or focus_age > focus_every:
535535
return True
536536

537537
return False

0 commit comments

Comments
 (0)