Description
While running a solar energy simulation using pvlib, I encountered a RuntimeWarning of overflow in the exp function within singlediode.py.
Warning Message:
/home/user/.local/lib/python3.10/site-packages/pvlib/singlediode.py:763: RuntimeWarning: overflow encountered in exp
np.exp((Rs[idx_p] * (IL[idx_p] + I0[idx_p]) + V[idx_p]) /
Error accured: upper >= lower is required
I have a two-file setup:
refactored_code.py contains all the functions required for the simulation.
APIprojectTADD_refactored.py contains the main logic and calls the functions defined in refactored_code.py.
The warning appears when I run APIprojectTADD_refactored.py.
you can find the files in this repo: https://github.com/ElyWacime/TADD_API
Questions:
Is this warning expected under certain conditions, or could it be a bug?
What steps should I take to debug or resolve this warning?
Environment:
Python version: 3.10
pvlib version: 0.10.0