Skip to content

Input parameter naming convention - time vs times #2231

Open
@AdamRJensen

Description

@AdamRJensen

Several pvlib functions take an index as one of the input parameters, however, it is inconsistent whether this parameter is called times or time.

I think we should document the preferred naming, add it to the symbols and variables list, and make an effort to standardize.

See a few examples below of TIME:

def get_solarposition(time, latitude, longitude,

def spa_c(time, latitude, longitude, pressure=101325, altitude=0,

def localize_to_utc(time, location):

Here's a few examples of TIMES:

def _get_sample_intervals(times, win_length):

def sun_rise_set_transit_spa(times, latitude, longitude, how='numpy',

def hour_angle(times, longitude, equation_of_time):

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