Replies: 2 comments 1 reply
-
It's an interesting idea that comes up now and again. See #433 for general related discussion and more recently #1804 for a specific instance. I have the sense that we aren't interested in adding this kind of checking in the functions. But there is talk (maybe not public, yet) about adding checks along these lines for ModelChain, maybe as an optional post-processing step on the ModelChainResult or something. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Range checks could be made conditional, like assertions, to manage a potential performance hit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello pvlib,
I was wondering if it would be useful to have some warnings in functions which have numerical inputs that have bounds, but don't error out if the boundary conditions are not met. Happy to contribute, if it would be useful.
For example, pvlib.tracking.singleaxis takes GCR as an input. In the documentation the function asks for a number from 0 to 1, but any number could theoretically be used as an input. If a number outside of 0 and 1 is used, then the function gives interesting results.
Beta Was this translation helpful? Give feedback.
All reactions