Skip to content

Naming consistency #1113

@dopplershift

Description

@dopplershift

Leading up to 1.0 it would be nice to standardize naming of function arguments, and eliminate any weird abbreviated names (similar to #1107). Things that stand out:

For kinematics.py:

  • lats: both abbreviated and plural when nothing else is. coriolis_parameter takes latitude.
  • thta in frontogenesis. At least should be theta. potential_vorticity_baroclinic uses potential_temperature. I think I prefer the latter.
  • height vs. heights. We don't have function arguments of temperatures, why do we have heights? Also, montgomery_streamfunction uses height

I'm sure more will pop out, but we need a good review. Changing these is technically an API break, but:

  1. I don't think many people pass these parameters by name
  2. If the name change, the code fails to run and you have an indication that you need to update your code (versus giving wrong answers)

My inclination is to just change these for 1.0 without worrying about a deprecation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: CalcPertains to calculationsType: API ChangeChanges to how existing functionality works

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions