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-38013: Fix where focus_z value comes from #17

Merged
merged 3 commits into from Feb 15, 2023
Merged

Conversation

mfisherlevine
Copy link
Contributor

No description provided.

@@ -52,6 +52,10 @@ class FitResult:
sigma: float


def getFocusFromHeader(exp):
return float(exp.visitInfo.focusZ)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it correct to refer to the visitInfo as a “header”? Also, this one-liner seems like overkill for its own (undocumented) function 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair cop on both accounts - I've renamed it to getFocusFromExposure and added docs. I think a function is good though, because even though it's a one-liner, if/when it moves again, or we find out the we need to apply some weird offset/transform from the EFD, we only have to change that in one place.

@mfisherlevine mfisherlevine merged commit fea364b into main Feb 15, 2023
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