Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

It should be impossible to instantiate a PVSystem with no Arrays #1148

Copy link
Copy link
Closed
@wfvining

Description

@wfvining
Issue body actions

Describe the bug
It should be impossible to instantiate a PVSystem with no Arrays. Currently this is possible via PVSystem(arrays=[]).

To Reproduce
Steps to reproduce the behavior:

from pvlib import pvsystem
pvsystem.PVSystem(arrays=[])

results in this PVSystem:

PVSystem:
  name: None
  inverter: None

Expected behavior
A ValueError should be raised indicating that a PVSystem must have at least one Array and suggesting that a system with an arbitrary default array can be constructed by passing arrays=None or not passing the arrays parameter at all.

Versions:

  • pvlib.__version__: 0.8.1+

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.