Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tickets/dm 46179 Extend TCS readiness check to other image types beyond OBJECT #229

Merged
merged 5 commits into from
Oct 30, 2024

Conversation

iglesu
Copy link
Contributor

@iglesu iglesu commented Oct 13, 2024

https://rubinobs.atlassian.net/browse/DM-46179

Before I keep going I want to make sure I'm not deviating from the intended development objectives. Specially for the unit tests. Thanks!

Copy link
Member

@tribeiro tribeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a couple inline comments for you to consider. Mainly, you need to make sure you are limiting the resources when creating ATCS and MTCS classes by using the intended_usage argument.

Also, I am not sure I understand what you did the in the unit tests. Can you please try to follow the style that is already there instead?

@@ -0,0 +1 @@
Extend TCS readiness check to other image types beyond OBJECT.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure your news fragment explains what it is that you are doing. You should probably say something like:

Configure TCS synchronization to the following scripts:
  - ...

Then list the scripts.

@@ -46,8 +46,13 @@ class TakeImageLatiss(BaseTakeImage):
def __init__(self, index):
super().__init__(index=index, descr="Take images with AT Camera")

self.atcs = ATCS(self.domain, log=self.log)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, limit the resources used by the class by specifying the intended_usage attribute. This should be something like

self.atcs = ATCS(self.domain, log=self.log, intended_usage= ATCSUsages.Slew)

you will need to import ATCSUsages as alongside ATCS above.

@@ -48,8 +49,13 @@ def __init__(self, index):

self.config = None

self.mtcs = MTCS(self.domain, log=self.log)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above for the auxtel script, but it is a lot more critical for MT, you need to limit the usages or it will use way too many resources. It should be something like:

self.mtcs = MTCS(self.domain, log=self.log, intended_usage=MTCSUsages.Slew)

@iglesu iglesu force-pushed the tickets/DM-46179 branch 4 times, most recently from a1d710a to 642bcdc Compare October 21, 2024 22:07
Integrated the `tcs_ready_to_take_data` method across scripts
responsible for taking on-sky images, specifically for image types:
OBJECT, ENGTEST, CWFS, ACQ

Configure TCS synchronization to the following script:
  - auxtel/daytime_checkout/slew_and_take_image_checkout.py
  - auxtel/take_image_latiss.py
  - maintel/take_image_comcam.py
  - maintel/take_image_lsstcam.py
  - maintel/take_triplet_comcam.py

Added unit tests for the above scripts.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to document this change in a news fragment. Please use a separate file, e.g. DM-46179.feature.1.rst`

from lsst.ts.observatory.control.maintel.comcam import ComCam, ComCamUsages
from lsst.ts.observatory.control.maintel.mtcs import MTCSUsages
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please import this alongside MTCS please? You might have to change the import above to be something like

lsst.ts.observatory.control.maintel.mtcs import MTCS, MTCSUsages

@@ -48,8 +49,13 @@ def __init__(self, index):

self.config = None

self.mtcs = MTCS(self.domain, log=self.log)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please restrict the resources.

Copy link
Member

@tribeiro tribeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good..

@iglesu iglesu merged commit 60074b0 into develop Oct 30, 2024
2 checks passed
@iglesu iglesu deleted the tickets/DM-46179 branch October 30, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants