-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Unable to use CEC modules in package overview example #413
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
Comments
Hi grshennan, the procedural example uses the SAPM model to calculate power output for solar modules. This model requires parameters supplied only in the Sandia module database. If you want to use modules from the CEC database you would need to use a different model, such as the SingleDiode model. I would suggest you take a look at the ModelChain documentation. There, you can specify "singlediode" for dc_model when initializing the ModelChain object. |
Thanks @jkfm |
Brilliant. Thank you. This is a great project btw. I'm very new at this and not much of a programmer but I'll do what I can to chip in. |
@jkfm @wholmgren This issue has come up before and seems to be a common trip hazard for new users. Any objections if I open an issue to help smooth this out? I'm think that we can check if a requested module is in the database for the currently specified model, and if its not, check the other database and suggest to the user to switch models. |
Sounds good to me. I would suggest catching and reraising a KeyError with the suggestion to check the other database. I think trying to do more than that might be tricky. |
Has anoyone built an example of a procedure for this? I have been playing around and do not see a 1:1 relationship between the models. What is the level of effort for performing this? This is for a course project and I am gauging the hours required for the group to work on this. |
@Dod1samaz1ng are you asking if there is an example showing how to use both single-diode and the SAPM model, or something else? If you are looking for an example, that should be easy to create and would be very welcome in the Example gallery. A few hours even for a beginner, and I'm happy to help answer questions. |
Hi,
Just working my way through the procedural example given in the package overview. I copied-and-pasted the code and it runs fine. Then I want to select my own modules that are in the list of CEC modules rather than the Sandia modules
sandia_modules = pvlib.pvsystem.retrieve_sam('cecmod')
and
module = sandia_modules['Seraphim_Solar_System_SRP_275_6PA']
but when I do this I get an error, no matter which module I use. (I haven't written code to try them all but I have tried several and they all seem to produce the same error.)
The text was updated successfully, but these errors were encountered: