You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No aliases lists given in docs for some functions or methods #2185
We could discuss whether it's worth spending time to add the alias list, though it would be quite involved I think (also considering the eventual goal is to drop single character aliases, xref #262).
changed the title [-]No aliases lists given in docs for `pygmt.triangulate*`[/-][+]No aliases lists given in docs for some functions or methods[/+]on Nov 13, 2022
I apologize for my delayed response! Thanks @weiji14 for your explanation!
The regular_grid and delaunay_triples functions don't use the @use_alias decorator [...] so the {aliases} shortcode won't work.
Yes, I realized this, when I added the {aliases} short code and locally testing failed 😉.
We could discuss whether it's worth spending time to add the alias list, though it would be quite involved I think (also considering the eventual goal is to drop single character aliases, xref #262).
I can not comment on how much effort adding the alias list would be. Could this be done in a general way and applied to all functions and methods which currently do not have an alias list in the documentation?
From a long-term perspective and considering the proposed goal to drop the single chracter aliases, I feel, as mention by @weiji14, it makes sense to prioritize wrapping the remainder of the short parameters.
Activity
seisman commentedon Nov 11, 2022
Ping @weiji14
weiji14 commentedon Nov 11, 2022
The
regular_gridanddelaunay_triplesfunctions don't use the@use_aliasdecorator as seen here:pygmt/pygmt/src/triangulate.py
Lines 151 to 153 in e4e4c43
pygmt/pygmt/src/triangulate.py
Lines 277 to 279 in e4e4c43
so the
{aliases}shortcode won't work.We could discuss whether it's worth spending time to add the alias list, though it would be quite involved I think (also considering the eventual goal is to drop single character aliases, xref #262).
What might be a better use of time is to wrap the remainder of the short parameters in https://docs.generic-mapping-tools.org/6.4/triangulate.html (e.g.
-A,-C, etc) that don't yet have a long alias in PyGMT. The original implementation oftriangulateat #731 was only meant to do a minimum set of these aliases.P.S. The same issue also applies for https://www.pygmt.org/v0.7.0/api/generated/pygmt.grdhisteq.html
[-]No aliases lists given in docs for `pygmt.triangulate*`[/-][+]No aliases lists given in docs for some functions or methods[/+]yvonnefroehlich commentedon Nov 13, 2022
I apologize for my delayed response! Thanks @weiji14 for your explanation!
Yes, I realized this, when I added the
{aliases}short code and locally testing failed 😉.I can not comment on how much effort adding the alias list would be. Could this be done in a general way and applied to all functions and methods which currently do not have an alias list in the documentation?
From a long-term perspective and considering the proposed goal to drop the single chracter aliases, I feel, as mention by @weiji14, it makes sense to prioritize wrapping the remainder of the short parameters.
I adjusted the title of the issue and my initial comment above.
seisman commentedon Feb 29, 2024
The issue has been addressed in PR #3073 and #3076. Closing.