Skip to content

Unused input parameter in fuentes temperature model #2597

Closed

Description

@AdamRJensen

As far as I can tell the tinoct parameter in the _fuentes_hconv function is not being used:

def _fuentes_hconv(tave, windmod, tinoct, temp_delta, xlen, tilt,
check_reynold):
# Calculate the convective coefficient as in Fuentes 1987 -- a mixture of

Activity

  1. adriesse commented on Nov 18, 2025

    @adriesse
    Member

    How curious...

  2. self-assigned this
    on Nov 18, 2025
  3. cwhanse commented on Nov 18, 2025

    @cwhanse
    Member

    I'm confident that it is a mistake in the porting from FORTRAN. The FORTRAN code did not use a function or subroutine to calculate hconv. I think we can just drop tinoct from _fuentes_hconv.

  4. kandersolar commented on Nov 18, 2025

    @kandersolar
    Member

    I'm guessing it was used while first drafting the pvlib version, but I ended up changing _fuentes_hconv to use the temp_delta parameter instead and overlooked the fact that tinoct was no longer needed. Seems like this can't have any effect on behavior, so it's just a linting issue I suppose. +1 to removing it.

  5. added this to the v0.13.2 milestone on Dec 1, 2025
  6. modified the milestones: v0.13.2, v0.14.0 on Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions