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-29271: PTC task: Refactoring/simplification of code ported from Pierre Astier's repository. #177

Merged
merged 1 commit into from Mar 31, 2021

Conversation

plazas
Copy link
Contributor

@plazas plazas commented Mar 30, 2021

No description provided.

@plazas plazas requested a review from czwa March 30, 2021 02:53
ptcFitParsError=[np.nan], ptcFitChiSq=np.nan, covArray=[], covArrayModel=[],
covSqrtWeights=[], aMatrix=[], bMatrix=[], covArrayModelNoB=[], aMatrixNoB=[],
finalVar=[np.nan], finalModelVar=[np.nan], finalMean=[np.nan]):
"""Function to initialize an amp of a PhotonTransferCurveDataset."""
Copy link
Contributor

Choose a reason for hiding this comment

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

Closing """ should be on a separate line. It might be good to add a note pointing that these parameters are all documented in the class init.

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 this requirement has been relaxed (to accommodate the on-same-line enforcement in black): https://developer.lsst.io/python/numpydoc.html#docstrings-should-begin-with-and-terminate-with-on-its-own-line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you both! I'll add the comment that Chris suggests, but keep in mind what Lauren points out.

Copy link
Contributor

Choose a reason for hiding this comment

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

I did not know this, so thanks from me as well!

Expand explanation in docstring
@plazas plazas merged commit 2b59f77 into master Mar 31, 2021
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