Skip to content

regression: iam.physical returns nan for aoi > 90° when n = 1 #1706

Closed

Description

@kdebrab

Describe the bug
For pvlib==0.9.5, when n = 1 (no reflection) and aoi > 90°, we get nan as result.

To Reproduce

import pvlib
pvlib.iam.physical(aoi=100, n=1)

returns nan.

Expected behavior
The result should be 0, as it was for pvlib <= 0.9.4.

Versions:

  • pvlib.__version__: '0.9.5'
  • pandas.__version__: '1.5.3'
  • python: 3.10.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions