-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consistent air temperature naming #894
Comments
I'm okay with |
I can accede to |
I guess I prefer
We should just pick a style, explain it as best as we can, ask that it be followed, keep a record of standardized terminology, and hope that it's mostly general enough. Sound good? This could possibly be a GSoC task, but maybe too easy? |
@mikofski I generally prefer the first style you list but with the qualifier to be first. This makes it easier to find the variable in an IDE's auto-completion when you might have six different temperatures in the form I'm fine with your second style as long as a third full length word isn't added to the snake-cased variable. Sometimes it really helps to have it easily human readable. If I see just |
To be clear, I only care about naming for the public API. Use whatever you want within functions so long as it's readable.
+1 I think we're safe to assume that I also prefer |
I think it would help to compile a glossary of what's currently used in the API, by topic. I can take a crack at that. |
A lot of pvlib uses the term
temp_air
for ~2 m air temperature. Theget_solarposition
function (perhaps among others) usestemperature
, which causes some confusion (see #893 (comment)). We should standardize the naming.My vote is
temperature
. I really disliketemp_air
.Note that MetPy recently went through a similar parameter name refactoring and chose
temperature
(among other things): Unidata/MetPy#1299The text was updated successfully, but these errors were encountered: