-
-
Notifications
You must be signed in to change notification settings - Fork 89
Fixed some formatting problems and included a lot of points [skip ci] #341
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
Conversation
@MSeifert04 can you submit with a commit without [skip ci]. It is a large amount of changes and it would be good that it doesn't effect anything. |
@crawfordsm For now this more or less a work-in-progress PR. I just check if there is missing punctuation, errors in the docstrings or some PEP8 warnings. I've submitted another commit (including some corrections in the |
That was more or less most of the really obvious (small) problems. There is still room for lots of clarification, additional links, removing links and cross-referencing of function/attributes. I think I'll leave it as is for now if nobody finds any mistakes I've made. |
Sorry I've realized there was another problem in #338 regarding the bulleted list and some of the example codes did not have the right indentation. |
I am very sorry for this flood of commits. |
I will make another commit later to fix additional formatting issues (some of them just including One (maybe objectionable) additional change: I'll omit the |
So that's it. If there are no test failures I would appreciate if anyone wants to review this change. 😃 |
ccdproc/ccddata.py
Outdated
kwd['meta'] = kwd.pop('header', None) | ||
if 'header' in kwd: | ||
raise ValueError("Can't have both header and meta") | ||
raise ValueError("Can't have both header and meta.") |
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.
Since it's a nit picking PR, I would raise a super tiny point here. Start the error messages lowercase.
This was pointed out somewhere else recently (but now I can't find it), that if you look at what comes out of the interpreter, it may look more consistent to start the message lowercase as it follows a colon.
However this is something that's not done consistently yet in the astropy world, but would be nice to do.
In [1]: raise ValueError("Can't have both header and meta")
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-1-f52884564396> in <module>()
----> 1 raise ValueError("Can't have both header and meta")
ValueError: Can't have both header and meta
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.
That's a good point, I'll scan through the raise
-items again.
How about log
-infos? I think they are printed:
>>> nd2 = NDData(q, unit=u.cm)
INFO: Overwriting Quantity's current unit with specified
So lowercase them too?
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.
Not sure, I think lowercase too.
ccdproc/combiner.py
Outdated
minmax_clip : Boolean (default False) | ||
Set to True if you want to mask all pixels that are below minmax_clip_min or above minmax_clip_max before combining. | ||
minmax_clip : bool, optional (default False) |
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.
again, move the default
@MSeifert04 - Left a few nitpicky comments, implement as few or many as you feel like. |
ccdproc/combiner.py
Outdated
img_list : `list`, 'string' | ||
A list of fits filenames or CCDData objects that will be combined together. | ||
Or a string of fits filenames seperated by comma ",". | ||
img_list : list or string |
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.
str
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.
And I thought I got all of them. 😄
@bsipocz Thank you for all the comments. I've edited most of them except for |
ccdproc/ccddata.py
Outdated
The actual data contained in this `~ccdproc.CCDData` object. | ||
Note that this will always be copies by *reference* , so you should | ||
make copy the ``data`` before passing it in if that's the desired | ||
make copy the ``data`` before passing it in if that's the desired |
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.
As long as we are cleaning up, could you please change make copy
to make a copy
?
@MSeifert04, thanks for the very thorough doc linting, and also thanks to @bsipocz for the extensive comments. This looks good to me @crawfordsm (there is one minor comment I made, but I'm ok with merging as-is if you want). |
@mwcraig I've changed the sentence you mentioned. Actually I made some more changes in that sentence. If it's less understandable now I'll revert it again but |
I think (hope) the installation problems with AppVeyor are not because of this PR. |
@MSeifert04 - I've restarted appveyor. It's never the PRs fault if it's stuck at the point of installing miniconda ;) |
Well I changed a line containing |
@crawfordsm Thank you for merging. I hope the docs look better now (even if I doubt anyone will notice). |
Thanks for the PR and all the updates and fixes @MSeifert04 ! Very big help! |
I've fixed some formatting issues, deleted some newlines in docstrings and included some points.
Closes #338