Skip to content

Perez coeff ModelChain example #2148

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

Merged
merged 23 commits into from
Aug 15, 2024
Merged

Conversation

bgpierc
Copy link
Contributor

@bgpierc bgpierc commented Jul 30, 2024

This PR adds an example of using different Perez coefficients in a ModelChain as discussed in #2127. I wasn't sure where to put it so I stuck it in the irradiance transposition section

Rendering of the gallery example

@bgpierc bgpierc changed the title Perez coeff ModelChainexample Perez coeff ModelChain example Jul 30, 2024
@kandersolar kandersolar added this to the v0.11.1 milestone Jul 31, 2024
Copy link
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice @bgpierc, this is great! A few small suggestions below.

Copy link
Member

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @bgpierc!

I'll plan to merge this in a few days to give others a chance to review if they want.

Copy link
Member

@cwhanse cwhanse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggested edits for clarity.

Copy link
Contributor

@echedey-ls echedey-ls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Btw, was this comment not addressed due to any reason I (probably we) ignore?

Copy link
Member

@AdamRJensen AdamRJensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minior comments, but looks good :)

'wind_speed': tmy['wind_speed']})

loc = location.Location.from_tmy(metadata)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm inclined to break the code block in two at this point, just to make it less overwhelming to users. This can be done by adding in a sentence saying something like "Next, we set up a standard PV model using ModelChain".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, agreed, done

@kandersolar kandersolar merged commit 0428fbe into pvlib:main Aug 15, 2024
23 of 25 checks passed
@kandersolar
Copy link
Member

Thanks @bgpierc!

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

Successfully merging this pull request may close these issues.

ModelChain Object doesn't accept Perez transposition model coefficents
5 participants