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

AttributeError: module 'pvlib' has no attribute 'shading' #1161

Closed
flxzmmrmnn opened this issue Feb 5, 2021 · 1 comment
Closed

AttributeError: module 'pvlib' has no attribute 'shading' #1161

flxzmmrmnn opened this issue Feb 5, 2021 · 1 comment

Comments

@flxzmmrmnn
Copy link

I am trying to model the self shading of the diffuse radiation with pvlib.shading.masking_angle_passias() and pvlib.shading.sky_diffuse_passias(). When I try to run the modell I get the following error:

AttributeError: module 'pvlib' has no attribute 'shading'

Versions:

  • pvlib.__version__: 0.8.0
  • pandas.__version__: 1.2.1
  • python: 3.8.5
@kandersolar
Copy link
Member

Hi @flxzmmrmnn, thanks for the report. This was fixed in #1103 -- you can work around this problem either by using from pvlib import shading; shading.masking_angle_passias() or by upgrading to pvlib 0.8.1.

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

No branches or pull requests

2 participants