Skip to content

Commit

Permalink
Implement tcs_ready_to_take_data integration for on-sky images
Browse files Browse the repository at this point in the history
Integrated the `tcs_ready_to_take_data` method across scripts
responsible for taking on-sky images, specifically for image types:
OBJECT, ENTEST, ACQ, CWFS
  • Loading branch information
iglesu committed Oct 13, 2024
1 parent e5d199b commit cba9af5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ def __init__(self, index: int, remotes: bool = True) -> None:

if remotes:
self.atcs = ATCS(domain=self.domain, log=self.log)
self.latiss = LATISS(domain=self.domain, log=self.log)
self.latiss = LATISS(
domain=self.domain, log=self.log,
tcs_ready_to_take_data=self.atcs.ready_to_take_data,
)
else:
self.atcs = ATCS(
domain=self.domain, log=self.log, intended_usage=ATCSUsages.DryTest
Expand Down
3 changes: 2 additions & 1 deletion python/lsst/ts/externalscripts/auxtel/correct_pointing.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def __init__(self, index: int, remotes: bool = True) -> None:

if remotes:
self.atcs = ATCS(domain=self.domain, log=self.log)
self.latiss = LATISS(domain=self.domain, log=self.log)
self.latiss = LATISS(domain=self.domain, log=self.log,
tcs_ready_to_take_data=self.atcs.ready_to_take_data)
else:
self.atcs = ATCS(
domain=self.domain, log=self.log, intended_usage=ATCSUsages.DryTest
Expand Down
8 changes: 6 additions & 2 deletions python/lsst/ts/externalscripts/auxtel/latiss_acquire.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,14 @@ def __init__(self, index, add_remotes: bool = True):

atcs_usage = None if add_remotes else ATCSUsages.DryTest

self.atcs = ATCS(domain=self.domain, intended_usage=atcs_usage, log=self.log)

tcs_ready_to_take_data = self.atcs.ready_to_take_data if add_remotes else None

self.latiss = LATISS(
domain=self.domain, intended_usage=latiss_usage, log=self.log
domain=self.domain, intended_usage=latiss_usage, log=self.log,
tcs_ready_to_take_data=tcs_ready_to_take_data
)
self.atcs = ATCS(domain=self.domain, intended_usage=atcs_usage, log=self.log)

self.image_in_oods_timeout = 15.0

Expand Down

0 comments on commit cba9af5

Please sign in to comment.