Skip to content
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

Modify initial Voc for bishop88 functions #2032

Merged
merged 6 commits into from
May 2, 2024

Conversation

cwhanse
Copy link
Member

@cwhanse cwhanse commented May 1, 2024

Restrict the starting Voc to be less than NsVbi for bishop88 functions for either method='newton' or method='brentq'. Doing so increases likelihood of convergence when the estimated Voc is greater than NsVbi, and also addresses a number of warnings. This change only affects single diode modeling when parameters NsVbi and d2mutau are changed from defaults of np.inf and 0, respectively. These parameters are relevant for PVsyst models of amorphous Si and CdTe cells.

gist comparing function failures before and after this change.

@cwhanse cwhanse added this to the v0.10.5 milestone May 1, 2024
@kandersolar kandersolar added the bug label May 1, 2024
Copy link
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

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

I think this warrants a whatsnew entry

pvlib/tests/test_singlediode.py Outdated Show resolved Hide resolved
pvlib/tests/test_singlediode.py Show resolved Hide resolved
@kandersolar kandersolar mentioned this pull request May 2, 2024
Copy link
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

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

LGTM. Whatsnew entry?

@kandersolar kandersolar merged commit 3230fea into pvlib:main May 2, 2024
15 of 16 checks passed
echedey-ls pushed a commit to echedey-ls/pvlib-python that referenced this pull request May 22, 2024
* modify bishop88_mpp

* lint

* extend coverage to v_from_i, i_from_v

* lint

* whatsnew

---------

Co-authored-by: Kevin Anderson <kevin.anderso@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bishop88 functions sometimes return incorrect results or errors when using d2mutau and NsVbi parameters
2 participants