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
DM-9572: Include instrument model in cameraGeom #74
Conversation
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.
👍
radec = self.visitInfo.getBoresightRaDec() | ||
ra = radec.getRa() | ||
dec = radec.getDec() | ||
era = self.visitInfo.getEra() |
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.
Note that this may not be exactly ERA. Since it's hard to compute it is typically an approximation. I don't know if it matters here.
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.
Thanks for the notice. I think approximate is good enough for now, but I'll keep this in mind going forward.
python/lsst/obs/hsc/hscPupil.py
Outdated
cosq = np.sqrt(1 - sinq*sinq) | ||
if dec > lat: | ||
cosq = -cosq | ||
q = Angle(np.arctan2(sinq, cosq)) |
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 think the style guide suggests avoiding single character variable names.
@@ -147,6 +145,19 @@ def testRaw(self): | |||
self.assertAlmostEqual(weather.getAirPressure(), self.weath_airPressure) | |||
self.assertAlmostEqual(weather.getHumidity(), self.weath_humidity) | |||
|
|||
def testPupil(self): | |||
"""Test retrieval of pupil (without checking value)""" |
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.
Don't you care that it's at least an HscPupilFactory
? That seems relatively easy to test.
42d9d26
to
0db3425
Compare
Subclass of pupilFactory tailored for HSC.
... which in turn attaches an hscPupilFactory to a Camera instance.
0db3425
to
4ad0239
Compare
No description provided.