Skip to content

irradiance.detect_clearsky: possibly redundant input 'times' #954

Open

Description

@cwhanse

irradiance.detect_clearsky expects measured and clear-sky GHI to be input as Series, and has an input times as a DatetimeIndex.

times : DatetimeIndex

What is the use case for having times as a separate input? Should the function instead use measured.index?

Activity

  1. added this to the 0.7.3 milestone on Apr 17, 2020
  2. wholmgren commented on Apr 17, 2020

    @wholmgren
    Member

    measured and clear sky are allowed to be arrays

  3. adriesse commented on Apr 28, 2020

    @adriesse
    Member

    The chances of having measured and clear sky without time indexes are pretty slim though, aren't they?

  4. wholmgren commented on Apr 28, 2020

    @wholmgren
    Member

    I agree and support the API change.

  5. modified the milestones: 0.7.3, 0.8.0 on May 19, 2020
  6. modified the milestones: 0.8.0, 0.9.0 on Aug 28, 2020
  7. cwhanse commented on May 7, 2021

    @cwhanse
    MemberAuthor

    #1074 changed times from an arg to a kwarg with default None. Both measured and clearsky arguments can still be array. I think it does no harm to keep times for compatibility with any legacy code.

    Recommend closing this issue.

  8. removed this from the 0.9.0 milestone on May 7, 2021
  9. wholmgren commented on May 7, 2021

    @wholmgren
    Member

    Fine with me to keep it open in an effort to simplify API or to close in an effort to clean the issues board. Either way not going into 0.9, so I removed the milestone.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions