Skip to content

Conversation

@cwhanse
Copy link
Member

@cwhanse cwhanse commented Oct 24, 2018

pvlib python pull request guidelines

Thank you for your contribution to pvlib python! You may delete all of these instructions except for the list below.

You may submit a pull request with your code at any stage of completion.

The following items must be addressed before the code can be merged. Please don't hesitate to ask for help if you're unsure of how to accomplish any of the items below:

  • Closes issue #xxxx
  • I am familiar with the contributing guidelines.
  • Fully tested. Added and/or modified tests to ensure correct behavior for all reasonable inputs. Tests (usually) must pass on the TravisCI and Appveyor testing services.
  • 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.
  • Code quality and style is sufficient. Passes LGTM and SticklerCI checks.
  • New code is fully documented. Includes sphinx/numpydoc compliant docstrings and comments in the code where necessary.
  • Pull request is nearly complete and ready for detailed review.

Brief description of the problem and proposed solution (if not already fully described in the issue linked to above):

@cwhanse
Copy link
Member Author

cwhanse commented Oct 24, 2018

I'm rethinking the initial idea to build the recombination equation into singlediode. The two extra parameters propagate to a lot of other functions in pvsystem, but only apply when using the PVsyst model for CdTe devices.

What do people feel about adding pvsystem.singlediode_recomb, as a separate function? PVSystem would wrap this function just as PVSystem.singlediode does, but ModelChain.pvsyst would provide the switch between standard single diode and single diode with recombination.

I have had two recent requests for this capability.

@mikofski
Copy link
Member

mikofski commented Oct 25, 2018

It doesn't really bother me if the two extra arguments aren't used, I'm more concerned about extra code, unless singlediode_recomb was the base function, and then singlediode was a more specific case with vbi and d2mutau set to None

def singlediode_recomb(...):
    return result

def singlediode():
    return singlediode_recomb(..., vbi=None, d2mutau=None):

@cwhanse cwhanse added this to the 0.7.0 milestone Nov 5, 2018
[[ 21.3592591 , 0. , 21.3592591 ],
[ 292.5162373 , 64.42628826, 246.95997198],
[ 941.47847463, 727.07261187, 258.25370648]]),
[[ 21.3592591, 0. , 21.3592591 ],
Copy link

Choose a reason for hiding this comment

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

E203 whitespace before ','
E202 whitespace before ']'

@cwhanse cwhanse closed this Feb 4, 2019
@cwhanse cwhanse deleted the vbi branch February 4, 2019 16:50
@mikofski
Copy link
Member

mikofski commented Feb 5, 2019

Was this merged?

@cwhanse
Copy link
Member Author

cwhanse commented Feb 5, 2019

No - want to work it?

@cwhanse
Copy link
Member Author

cwhanse commented Feb 5, 2019

Another PR I killed by accident when cleaning out old branches. I'm not going to re-open this PR, because it had unrelated commits on top of it. Still learning...

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.

2 participants