-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
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.