Skip to content

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

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

Closed
cwhanse opened this issue Jun 3, 2020 · 4 comments
Closed

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

cwhanse opened this issue Jun 3, 2020 · 4 comments

Comments

@cwhanse
Copy link
Member

cwhanse commented Jun 3, 2020

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.

@gcaria
Copy link

gcaria commented Aug 20, 2020

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 ?

@cwhanse
Copy link
Member Author

cwhanse commented Aug 20, 2020

@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.

@gcaria
Copy link

gcaria commented Aug 22, 2020

@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

@cwhanse
Copy link
Member Author

cwhanse commented Aug 24, 2020

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

@cwhanse cwhanse closed this as completed Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants