Skip to content

Conversation

@Chirag3841
Copy link

@Chirag3841 Chirag3841 commented Dec 11, 2025

@cwhanse

Description

This pull request adds clear and practical usage examples to the run_model_from_poa and run_model_from_effective_irradiance methods in pvlib.modelchain.ModelChain. These two functions are widely used, but until now the documentation did not contain complete examples demonstrating how to prepare input data or how the methods should be used in real workflows.

This PR introduces both single-array and multi-array examples for each method. The single-array examples show a minimal and straightforward modeling setup using PVSystem, Location, and ModelChain along with the required irradiance or effective irradiance DataFrame. The multi-array examples demonstrate how to correctly structure per-array inputs, showing how users should supply multiple DataFrames with aligned indexes and consistent ordering to match the system’s arrays.

These examples are especially important because multi-array usage is not intuitive without seeing a working format.

@Chirag3841
Copy link
Author

Chirag3841 commented Dec 11, 2025

@cwhanse
Fresh PR created as per requirement.

Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
@Chirag3841
Copy link
Author

@cwhanse
Any changes required sir now ?

@Chirag3841
Copy link
Author

@cwhanse
Sir what can I do now ?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add examples for run_model methods, add docstrings for ModelChain constants

2 participants