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 19256 #104

Merged
merged 2 commits into from Apr 20, 2019
Merged

Tickets/dm 19256 #104

merged 2 commits into from Apr 20, 2019

Conversation

RobertLuptonTheGood
Copy link
Member

Added some functionality for SLAC

-----
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
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo.

@RobertLuptonTheGood RobertLuptonTheGood merged commit 1d4e150 into master Apr 20, 2019
@parejkoj
Copy link
Contributor

Why are all of your docstrings prepended with r"""? Docstrings are not raw strings.

----------
camera : `lsst.afw.cameraGeom.Camera`
The object describing a/the LSST Camera
focalPlaneXY : `lsst.afw.geom.PointD`
Copy link
Contributor

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))
Copy link
Contributor

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
Copy link
Contributor

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?

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.

None yet

3 participants