You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of my GSoC 2026 project (#2750), I am working on adding support for diffuse irradiance components and component-specific optical loss calculations to ModelChain. This includes adding support for diffuse IAM models to ModelChain.
While planning this work, I noticed that all direct IAM models currently available in pvlib.iam are supported by ModelChain except for schlick. As noted by @kandersolar, there is no particular reason for this, it's just that no one's gotten around to it. So I would like to implement this.
This is relatively straightforward to implement, but I think there is one particular point worth discussing: whether schlick should be included in ModelChain's infer_aoi_model.
infer_aoi_model is used when the user does not provide an aoi_model, and selects an IAM model based on the parameters available in the PVSystem. The current priority order is: physical, sapm, ashrae, martin_ruiz, interp.
If included, schlick would presumably be in last place since it requires no parameters. This would also mean that the existing ValueError raised when no IAM model can be inferred would no longer occur, since schlick would always be available as a default. Therefore, this ValueError could be removed.
@cbcrespo I think for now you can start with a PR that adds it as an option, and then later we can decide if it needs to be included in the inferring. I'm somewhat hesitant in adding to the inferring algorithm, as there's no information to infer from (it just because the default if no information is given).
Edit: Since @kandersolar mentioned that the Schlink model is "not widely used and something of an oddity" #2811 (comment) then I don't think it is a good idea to have this become the default model in case that no information can be inferred. I think the current behavior of raising a ValueError is preferred.
@ramaroesilva there should be some record somewhere of the (much too) long discussions we had about this model. I think the onus is on an advocate of this model to make a case for its usefulness rather than the other way around. Sorry to be so blunt, but I don't want to sink more time into this one!
No wrongdoing there @adriesse 😉 My interest was on learning from you, not really on having a trial session on whether the function should be default or not (and on that I will fully support the opinion of those with more experience).
And thanks for mentioning this had been discussed before in the pvlib issue/PR archive, will take a look!
Activity
AdamRJensen commentedon Jul 23, 2026
@cbcrespo I think for now you can start with a PR that adds it as an option, and then later we can decide if it needs to be included in the inferring. I'm somewhat hesitant in adding to the inferring algorithm, as there's no information to infer from (it just because the default if no information is given).
Perhaps @wholmgren, @cwhanse, or @adriesse could shed some light on this?
Edit: Since @kandersolar mentioned that the Schlink model is "not widely used and something of an oddity" #2811 (comment) then I don't think it is a good idea to have this become the default model in case that no information can be inferred. I think the current behavior of raising a ValueError is preferred.
adriesse commentedon Jul 23, 2026
The Schlick model is not useful for PV modeling so it should not become a default or anything like that.
ramaroesilva commentedon Aug 3, 2026
thanks for the remark @adriesse! would you mind expanding a bit on this? would like to learn more on the "why".
adriesse commentedon Aug 3, 2026
@ramaroesilva there should be some record somewhere of the (much too) long discussions we had about this model. I think the onus is on an advocate of this model to make a case for its usefulness rather than the other way around. Sorry to be so blunt, but I don't want to sink more time into this one!
ramaroesilva commentedon Aug 4, 2026
No wrongdoing there @adriesse 😉 My interest was on learning from you, not really on having a trial session on whether the function should be default or not (and on that I will fully support the opinion of those with more experience).
And thanks for mentioning this had been discussed before in the pvlib issue/PR archive, will take a look!