Skip to content

avoid and/or silence common warnings #428

Closed
@wholmgren

Description

@wholmgren

A handful of pvlib functions often cause spit out runtime warnings for things like dividing by 0 or comparing the size of a nan value to a float. We should avoid or silence the warnings that we know are ok. They also make the test output a pain to read.

Here's a possibly incomplete list:

  • irradiance.perez divide by 0
  • irradiance.perez comparison with nan
  • clearsky.simplified_solis comparison with nan
  • pvsystem.sapm divide by 0 in log
  • pvsystem.ashraeiam comparison with nan
  • pvsystem.physicaliam comparison with nan
  • pvsystem.adrinverter comparison with nan
  • pvsystem.v_from_i overflow

I have some code ready for addressing the warnings in the perez model implementation. I'll post it soon.

Checked items are addressed in #429.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions