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

DM-9572: Include instrument model in cameraGeom #74

Merged
merged 4 commits into from Apr 14, 2017
Merged

Conversation

jmeyers314
Copy link
Contributor

No description provided.

Copy link
Contributor

@SimonKrughoff SimonKrughoff left a 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()
Copy link
Contributor

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.

Copy link
Contributor Author

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.

cosq = np.sqrt(1 - sinq*sinq)
if dec > lat:
cosq = -cosq
q = Angle(np.arctan2(sinq, cosq))
Copy link
Contributor

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

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.

@jmeyers314 jmeyers314 force-pushed the tickets/DM-9572 branch 3 times, most recently from 42d9d26 to 0db3425 Compare April 13, 2017 23:38
Subclass of pupilFactory tailored for HSC.
... which in turn attaches an hscPupilFactory to
a Camera instance.
@jmeyers314 jmeyers314 merged commit 4ad0239 into master Apr 14, 2017
@ktlim ktlim deleted the tickets/DM-9572 branch August 25, 2018 06:45
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

2 participants