Repository navigation
Add pvlib.spa.transit_sunrise_sunset to documentation - #2873
Conversation
Co-authored-by: Rajiv Daxini <[email protected]>
Co-authored-by: Kevin Anderson <[email protected]>
|
I would like to know why github is now showing the entire SPA file as one big change. |
~/Documents/10_Programming/pvlib-python remotes/AdamRJensen/add_transit_sunrise_sunset_to_docs* ≡
❯ file pvlib/spa.py
pvlib/spa.py: Python script, Unicode text, UTF-8 text executable, with CRLF line terminatorsYou probably need to mitigate with https://docs.github.com/en/get-started/git-basics/configuring-git-to-handle-line-endings?platform=windows |
|
I thought maybe it was line ending mismatch, but I'm confused:
So I do not see how a mismatch would appear now... |
|
Hmmm good point. I definitely don't have a clue now that you point that out. The commit where some (not all) line end with In fact, this are exactly the same lines suggested by him in this review comment: #2873 (comment) And given the content, I guess that's copy&pasted from somewhere else. I guess GH gives a shit regarding our git configuration? Super weird, but not so much considering Microslop bought GH years ago. |
I don't really understand what happened here either... did I do something wrong in the way I left a comment? 😂
|
|
@RDaxini you are not to blame, this platform is (if you ever are, I'll make sure to ping you and be explicit). In fact, now that I think more about it, even if your procedure is making this unwanted change, I believe in the past that was not an issue. I'm unlikely to confirm this issue since I don't have Windows anymore and probably can't get close enough to reproduce. FYI, CRLF/LF are the "new line" or "end of line" substring in text files, in Windows and Unix respectively. Windows uses two ASCII control characters (two bytes), CRLF, aka carriage-return and line-feed, aka represented by "\r\n" in programming languages such as C, Python and the regex I provided to ripgrep (rg) the command above in my comment. They are "control characters", non-printable by definition, so you won't see them rendered unless using specific text editors. Unix does the same to represent end of line, just by using one byte, LF aka '\n'. I think you can find more info on the web regarding ASCII, escape sequences (that backslash something representation in Python and other languages), CRLF/LF normalization and ripgrep if you don't know what it is. Feel free to ask me, thou. With copy&pasting I don't know if carriage returns can even be pasted, it's all pure speculation. Depends on so many things, OS, web browser, and GitHub API in this case. |
kandersolar
left a comment
There was a problem hiding this comment.
Still not really sure what happened here, but it's fixed now :)

transit_sunrise_sunset: seems as a public function, not in public docs? #2255docs/sphinx/source/referencefor API changes.docs/sphinx/source/whatsnewfor all changes. Includes link to the GitHub Issue with:issue:`num`or this Pull Request with:pull:`num`. Includes contributor name and/or GitHub username (link with:ghuser:`user`).remote-data) and Milestone are assigned to the Pull Request and linked Issue.Add transit_sunrise_sunset function to documentation. See #2255.