Skip to content

PEP8 fixups to solarposition.py and spa.py #50

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

Merged
merged 2 commits into from
Apr 22, 2015

Conversation

alorenzo175
Copy link
Contributor

As requested by @uvchik in #48.

@wholmgren
Copy link
Member

@uvchik if this looks good to you then I will merge.

For future reference, my vote is to not worry about trailing whitespace.

@uvchik
Copy link
Contributor

uvchik commented Apr 20, 2015

Looks good, but between two references must be line break otherwise all references are shown in one line. If you do so you can also keep the 80 character rule. Check the references in : get_solarposition, spa_c, spa_python and get_sun_rise_set_transit.

If you change the following lines:

    References
    ----------
    [1] I. Reda and A. Andreas, Solar position algorithm for solar radiation applications. Solar Energy, vol. 76, no. 5, pp. 577-589, 2004.
    [2] I. Reda and A. Andreas, Corrigendum to Solar position algorithm for solar radiation applications. Solar Energy, vol. 81, no. 6, p. 838, 2007.
    [3] USNO delta T: http://www.usno.navy.mil/USNO/earth-orientation/eo-products/long-term

to:

    References
    ----------
    [1] I. Reda and A. Andreas, Solar position algorithm for solar radiation
    applications. Solar Energy, vol. 76, no. 5, pp. 577-589, 2004.

    [2] I. Reda and A. Andreas, Corrigendum to Solar position algorithm for
    solar radiation applications. Solar Energy, vol. 81, no. 6, p. 838, 2007.

    [3] USNO delta T:
    http://www.usno.navy.mil/USNO/earth-orientation/eo-products/long-term

the result will change from

[1] I. Reda and A. Andreas, Solar position algorithm for solar radiation applications. Solar Energy, vol. 76, no. 5, pp. 577-589, 2004. [2] I. Reda and A. Andreas, Corrigendum to Solar position algorithm for solar radiation applications. Solar Energy, vol. 81, no. 6, p. 838, 2007. [3] USNO delta T: http://www.usno.navy.mil/USNO/earth-orientation/eo-products/long-term

to:

[1] I. Reda and A. Andreas, Solar position algorithm for solar radiation applications. Solar Energy, vol. 76, no. 5, pp. 577-589, 2004.

[2] I. Reda and A. Andreas, Corrigendum to Solar position algorithm for solar radiation applications. Solar Energy, vol. 81, no. 6, p. 838, 2007.

[3] USNO delta T: http://www.usno.navy.mil/USNO/earth-orientation/eo-products/long-term

I found some long lines (>79) at 156 and 285.

@uvchik uvchik mentioned this pull request Apr 20, 2015
@alorenzo175
Copy link
Contributor Author

Ok, should be fixed now. I think the remaining pep8 errors should be left alone for readability.

@uvchik
Copy link
Contributor

uvchik commented Apr 20, 2015

I totally agree. Good work. It's great that the spa algorithm is now integrated in the python code. @wholmgren and @Calama-Consulting I would merge that and add it to 0.1.

@wholmgren
Copy link
Member

Agreed on all of the above.
On Mon, Apr 20, 2015 at 11:12 AM ukrien notifications@github.com wrote:

I totally agree. Good work. It's great that the spa algorithm is now
integrated in the python code. @wholmgren https://github.com/wholmgren
and @Calama-Consulting https://github.com/Calama-Consulting I would
merge that and add it to 0.1.


Reply to this email directly or view it on GitHub
#50 (comment).

@wholmgren wholmgren added this to the 0.2 milestone Apr 22, 2015
wholmgren added a commit that referenced this pull request Apr 22, 2015
PEP8 fixups to solarposition.py and spa.py
@wholmgren wholmgren merged commit 3aa9b14 into pvlib:master Apr 22, 2015
@alorenzo175 alorenzo175 deleted the numba-spa branch April 23, 2015 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants