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 46969 Create script for take_rotated_comcam.py #152

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

iglesu
Copy link
Contributor

@iglesu iglesu commented Oct 23, 2024

@iglesu iglesu requested a review from tribeiro October 23, 2024 23:21
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.

This looks really good! I only have a few comments..

@@ -0,0 +1,186 @@
# This file is part of ts_standardscripts
Copy link
Member

Choose a reason for hiding this comment

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

ts_externalscripts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch!

# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

__all__ = ["TakeRotatedComCam", "Mode"]
Copy link
Member

Choose a reason for hiding this comment

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

I don't think you need to re-export Mode.

"""
await super().configure(config)
self.config = config
self.angles = config.angles
Copy link
Member

Choose a reason for hiding this comment

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

you are already storing the entire config object, I don't think you need to also store angles as a separate attribute.

az_wrap_strategy=WrapStrategy.NOUNWRAP,
)

await self.mtcs.wait_for_inposition(
Copy link
Member

Choose a reason for hiding this comment

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

you don't need to do this here.. slew_icrs will only finish when it is in position.

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, but I found one more issue with the imports. see my inline comment.

from lsst.ts.standardscripts.maintel.take_aos_sequence_comcam import (
TakeAOSSequenceComCam,
)
from lsst.ts.xml.enums.ATPtg import WrapStrategy
Copy link
Member

Choose a reason for hiding this comment

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

This should be MTPtg not ATPtg

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DARN!!! Of course! good catch!!

…gles

- Takes images at a sequence of specified rotation angles
- Integrates AOS sequence execution for each angle, either
  triplet (intra-focal, extra-focal and in-focus images),
  intra doublets (intra and in-focus) or extra
  doublets (extra and in-focus) sequences with ComCam.
- unit test for TakeRotatedComCam
@iglesu iglesu merged commit 02954f3 into develop Oct 25, 2024
2 checks passed
@iglesu iglesu deleted the tickets/DM-46969 branch October 25, 2024 19:17
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