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 19256 #104
Tickets/dm 19256 #104
Conversation
----- | ||
The Gen2 butler can't quite do this natively as it doesn't | ||
know how to only lookup things that it doesn't know, so we | ||
so that for it, poor lamb |
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.
Typo.
Why are all of your docstrings prepended with |
---------- | ||
camera : `lsst.afw.cameraGeom.Camera` | ||
The object describing a/the LSST Camera | ||
focalPlaneXY : `lsst.afw.geom.PointD` |
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 is a lsst.geom.Point2D
?
if afwGeom.BoxD(detector.getBBox()).contains(ccdXY): | ||
return detector, ccdXY | ||
|
||
raise RuntimeError("Failed to map focal plane position (%.3f, %.3f) to a detector" % (focalPlaneXY)) |
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 exception message will raise TypeError
, because Point2D
does not stringify to (%.3f, %.3f)
pass a detectorName (None to disable the default detectorName) | ||
""" | ||
self.camera = camera | ||
self.__detectorName = detectorName |
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.
Did you really mean to use double-underscores here?
Added some functionality for SLAC