Skip to content

Keys described in snlinverter are not what is used in code #976

Closed

Description

@cwhanse

The docstring for pvlib.pvystem.snlinverter lists the required key names for parameters in input inverter. Some key names are different from what is used in the code, e.g., Pac0 in docstring vs. `Paco' in code.

First step is to correct the docstring to describe the current function accurately.

A possible second step is to change some of the key names, Paco is not what I would expect for the nameplate AC power.

Activity

  1. added this to the 0.8.0 milestone on Jul 17, 2020
  2. gcaria commented on Aug 20, 2020

    @gcaria

    Hi, beginner here trying to help. When I look at the slninverter function defined in pvlib.pvsystem I don't see any list of parameters in the docstring. Actually there is a comment that says inverter now specified by self.inverter_parameters.

    It seems like the implementation has changed and the issue no longer exists, am I right ?

  3. cwhanse commented on Aug 20, 2020

    @cwhanse
    MemberAuthor

    @gcaria I think you are looking at the method pvlib.PVSystem.snlinverter rather than the underlying function, which has moved from pvlib.pvsystem.snlinverter to pvlib.inverter.sandia. In pvlib, there is a base layer of functions that implement individual models. The base layer functions are "wrapped" by methods attached to the PVSystem or ModelChain classes to aid in simulating a system.

    The issue relates to the documentation for the base function pvlib.inverter.sandia. I think some of the discrepancies have been addressed by #1011 but I have not checked if more edits are needed.

  4. gcaria commented on Aug 22, 2020

    @gcaria

    @cwhanse Thanks for the introduction ! Looking at pvlib.inverter.sandia I don't see any mismatch between the names of docstring variables and code variables

  5. cwhanse commented on Aug 24, 2020

    @cwhanse
    MemberAuthor

    Thanks for checking. I agree that this issue is closed by #1011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions