8000 Std. deviation of slope is calculated incorrectly for clearsky.detect_clearsky · Issue #1241 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content
Std. deviation of slope is calculated incorrectly for clearsky.detect_clearsky #1241
Closed
@cwhanse

Description

@cwhanse

Describe the bug

This line

raw = np.diff(data)

does not calculate the slope since it is not divided by the time interval.

Expected behavior

raw = np.diff(data) / sample_interval

Versions:

  • pvlib.__version__: 0.8.1

Additional context

All current tests use 1-minute intervals, so the tests are not incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0