Skip to content

Errors in sapm() and singlediode() #273

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
gperonato opened this issue Dec 2, 2016 · 2 comments
Closed

Errors in sapm() and singlediode() #273

gperonato opened this issue Dec 2, 2016 · 2 comments

Comments

@gperonato
Copy link

I am getting these errors running the tmy_to_power notebook:
on sapm()
TypeError: sapm() takes 3 positional arguments but 6 were given

on singlediode()
ValueError: operands could not be broadcast together with shapes (21,) (8760,)

@wholmgren
Copy link
Member

This is related to #267. We did not update the tutorials for the syntax changes made going from pvlib 0.3 to 0.4. Check out the updated function calls here:

http://nbviewer.jupyter.org/github/wholmgren/pvlib-python/blob/tutorials041/docs/tutorials/pvsystem.ipynb

and here

http://pvlib-python.readthedocs.io/en/latest/api.html#pv-modeling

and see if you can make it work.

Even better if you make a pull request with the fixed code!

@gperonato
Copy link
Author

Thanks, it works now! I have made a pull request with the fixed code.

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

2 participants