Skip to content

Naming pattern for IAM functions #680

Closed

Description

@cwhanse

Is your feature request related to a problem? Please describe.
It may be easier for users to find and select IAM functions if the function names start with the prefix iam, e.g., iam_ashrae rather than the current pattern placing iam as a suffix ashraeiam

Describe the solution you'd like
Rename physicaliam, ashraeiam, etc. and deprecate old names.

Activity

  1. wholmgren commented on Mar 28, 2019

    @wholmgren
    Member

    Related to #436... I currently prefer to see a new module iam.py with functions physical, ashrae, etc.

  2. added this to the 0.7.0 milestone on Mar 29, 2019
  3. cwhanse commented on Oct 2, 2019

    @cwhanse
    MemberAuthor

    Starting on a PR for this. iam.py conflicts with the often-used variable iam, e.g., iam = pvsystem.ashraeiam() in the current code. Suggestions? Seems like a good idea to keep iam available for users to name the output of these functions.

  4. wholmgren commented on Oct 2, 2019

    @wholmgren
    Member

    I don't have a better idea, but I don't think we need to worry about what variables might exist in user code. There's only a name conflict when the module is imported as from pvlib import iam. While that's a common pattern, I don't think it's frequent enough to justify choosing a worse name for our module.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions