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-24389: Implement amp-to-amp offset correction task #173

Merged
merged 1 commit into from Sep 1, 2021

Conversation

leeskelvin
Copy link
Contributor

This commit adds a placeholder amp offset task which is not implemented
here, and instead should be retargeted by a camera specific version.

Copy link
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

I think we need to discuss naming/terminology to make this as clear and consistent as possible. Otherwise, looks good.

)
ampEdgeMaxStep = pexConfig.Field(
doc="Maximum allowed amp-to-amp step value. If a measured amp-to-amp step value is larger than this, "
"the result will be discarded and therefore not used to determine amp offset piston corrections.",
Copy link
Contributor

Choose a reason for hiding this comment

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

We have (starting here in my review) the use of amp-to-amp step and amp offset piston. I think we need to (a) standardize on a name, and (b) the more I think about it I don't like piston because it confused Josh (there's a physical up-down piston which relates to focus). I'm not sure what name to use, maybe we should open this up on #dm-naming-things.

Copy link
Contributor

Choose a reason for hiding this comment

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

The doc string should specify the units (ADU).

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 these comments Eli, and apologies it's taken me some time to reply. So, following your comments here and the previous discussion on #dm-naming-things, I have now standardized on two names to use for this ticket: amp offset describes the jump (in ADU) from one amp to another, and amp pedestal describes the specific value (in ADU) added/subtracted from an individual amplifier. All mentions of 'step' and 'piston' have been removed from the code and associated doc strings. I hope that reads well, but keen to hear your thoughts if not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PS - mention of units (ADU) added to the docstring here also, thank you.


def run(self, exposure):
"""Calculate amp-to-amp step values, determine corrective piston
pedestals for each amp, and update the input exposure in-place. This
Copy link
Contributor

Choose a reason for hiding this comment

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

And now we have piston pedestals. We want to make sure this is consistent everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Following above, this opening sentence now reads: Calculate amp offset values, determine corrective pedestals for each amp, and update the input exposure in-place.

@@ -721,6 +721,17 @@ class IsrTaskConfig(pipeBase.PipelineTaskConfig,
default=True,
)

# Amp offset correction.
doAmpOffset = pexConfig.Field(
Copy link
Contributor

Choose a reason for hiding this comment

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

This and below might be renamed, but I'm actually satisfied with this. But we should ask more broadly. I just want to make sure that a search of the codebase will come up with something consistent and relatively unique. SEO style!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This name has been preserved.

Copy link
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

Looks good. See my comments on obs_subaru that the subtask initialization should be brought to the parent task here.

This commit adds a placeholder amp offset task which is not implemented
here, and instead should be retargeted by a camera specific version.
@leeskelvin leeskelvin merged commit 576dc97 into master Sep 1, 2021
@leeskelvin leeskelvin deleted the tickets/DM-24389 branch September 1, 2021 04:39
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