-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
01a0a45
to
d83e971
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ts_externalscripts
There was a problem hiding this comment.
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"] |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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.
d83e971
to
4dd0a52
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
17a2c19
to
244e2df
Compare
https://rubinobs.atlassian.net/browse/DM-46969