Skip to content

removes unused pressure arg from Irradiance.liujordan function #389

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

KonstantinTr
Copy link
Contributor

@KonstantinTr KonstantinTr commented Oct 26, 2017

  • Closes issue irradiance.liujordan function doesn't use pressure arg #386
  • Fully tested. Added and/or modified tests to ensure correct behavior for all reasonable inputs. Tests must pass on the TravisCI and Appveyor testing services.
  • Code quality and style is sufficient. Passes git diff upstream/master -u -- "*.py" | flake8 --diff and/or landscape.io linting service.
  • New code is fully documented. Includes sphinx/numpydoc compliant docstrings and comments in the code where necessary.
  • Updates entries to docs/sphinx/source/api.rst for API changes.
  • Adds description and name entries in the appropriate docs/sphinx/source/whatsnew file for all changes.

@wholmgren wholmgren added this to the 0.5.2 milestone Oct 26, 2017
Copy link
Member

@wholmgren wholmgren left a comment

Choose a reason for hiding this comment

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

Thanks. I don't understand what's causing the tests to fail on appveyor, but I'm pretty sure it's unrelated to these changes.

@@ -14,6 +14,7 @@ Enhancements
Bug fixes
~~~~~~~~~
* fixed redeclaration of test_simplified_solis_series_elevation (:issue:`387`)
* removed unused 'pressure' arg from irradiance.liujordan function (:issue:`386`)
Copy link
Member

Choose a reason for hiding this comment

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

I suggest putting this in the API changes section to give it a little more visibility.

@@ -201,8 +201,7 @@ def test_liujordan():
columns=['ghi', 'dni', 'dhi'],
index=[0])
out = irradiance.liujordan(
pd.Series([10]), pd.Series([0.5]), pd.Series([1.1]),
pressure=93000., dni_extra=1400)
pd.Series([10]), pd.Series([0.5]), pd.Series([1.1]),dni_extra=1400)
Copy link
Member

Choose a reason for hiding this comment

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

space after comma

@KonstantinTr
Copy link
Contributor Author

KonstantinTr commented Oct 27, 2017

I don't like that tests fail on python 3.

When I run on my local windows machine I've got: 457 total, 1 failed, 5 ignored, 451 passed

I've created an issue #390 for the failed test.

@wholmgren
Copy link
Member

wholmgren commented Nov 13, 2017

Looks like we've resolved all the testing issues, so I'm going to go ahead and merge this. Thanks for the fix @KonstantinTr

@wholmgren wholmgren merged commit 726cf07 into pvlib:master Nov 13, 2017
@KonstantinTr KonstantinTr deleted the irradiance.liujordan-function-doesn't-use-pressure-arg branch November 14, 2017 20:48
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.

2 participants