Skip to content

Bug: SRR analysis/_calc_daily_df error #129

@kandersolar

Description

@kandersolar

The following line of code raised an error because run[run.pi_norm > 0] was of length zero and as such its index had no element 0:

https://github.com/NREL/rdtools/blob/development/rdtools/soiling.py#L196

Maybe the loop should include a check for 0 <= len(run) < 2. Unfortunately I don't have a reproducible example -- my code was broken in other ways and has since been fixed, so maybe the problem was because I was feeding it bad data. I could probably recreate the broken code from git history, let me know if that would be useful.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions