Skip to content

Adjustment factors for Non-annual PV simulations #1111

@dguittet

Description

@dguittet

Describe the bug
When running a non-annual simulation where the weather data doesn't start at timestep 0, such as in https://github.com/NREL/pysam/blob/main/Examples/NonAnnualSimulation.ipynb

the adjustment factors are not properly aligned and result in a adjustment factor of 0, zeroing out all ac power as in the example above.

The length of the adjustment factors vector is the length of the weather file (810), but when accessing the adjustment factor, the timestep is used (3096) and since this is larger than the length, the default of 0 is returned.

To Reproduce
Steps to reproduce the behavior:

  1. Run the above notebook and see that the prediction line at the bottom is 0

Expected behavior
Adjustment factor should be aligned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions